CGRA-ME
Public Member Functions | Public Attributes | List of all members
RIKEN_PE_Elastic Class Reference

#include <UserModules.h>

Inheritance diagram for RIKEN_PE_Elastic:
Module

Public Member Functions

 RIKEN_PE_Elastic (std::string name, int pe_conn_in, int pe_conn_out, int II, int latency, Location Loc, int type, int buffer_depth=2, bool eb_enable=true, int contexts=1, bool pred=false, std::string pred_type="full")
 
virtual std::string GenericName ()
 
virtual ~RIKEN_PE_Elastic ()
 
- Public Member Functions inherited from Module
 Module (std::string name, Location, unsigned size=DEFAULT_SIZE, bool isElastic=false)
 
 Module (std::string name, std::string template_name, Location loc={0, 0}, unsigned size=DEFAULT_SIZE, bool isElastic=false)
 
virtual ~Module ()
 
 Module (const Module &)=delete
 
 Module (Module &&)=default
 
Moduleoperator= (const Module &)=delete
 
Moduleoperator= (Module &&)=default
 
void print ()
 
void print_dot ()
 
void print_ports ()
 
void print_connections ()
 
void print_submodules ()
 
void print_configcells ()
 
void addConfig (ConfigCell *c, std::vector< std::string > ConnectTo)
 
void addConfig (std::string name, std::vector< std::string > ConnectTo, int contexts, bool isElastic)
 
void addSubModule (Module *m)
 
void addSubModule (Module *m, double xPos, double yPos, double width, double height)
 
void connectPorts (std::string src, std::string dst, bool isElastic)
 
void addConnection (std::string src, std::string dst, bool isInMRRG=true)
 
void addElasticConnection (std::string src, std::string dst)
 
void addPort (std::string portname, port_type pt, unsigned size)
 
void addPort (std::string portname, port_type pt, unsigned size, bool isElastic)
 
void addElasticPort (std::string portname, port_type pt, unsigned size)
 
void addPort (std::string portname, port_type pt, std::string ParameterName, unsigned size)
 
void addPort (std::string portname, port_type pt, std::string ParameterName, unsigned size, bool isElastic)
 
void addElasticPort (std::string portname, port_type pt, std::string ParameterName, unsigned size)
 
void addParameter (std::string parameterName, unsigned parameterValue)
 
void addVerilogPort (std::string name, port_type pt, std::string parameter, unsigned size)
 
void genConfigOrder (std::vector< ConfigCell * > &ConfigTable) const
 
ModulegetSubModule (std::string)
 
bool isSubModule (Module *)
 
ModulegetModule (std::string, std::string err_context="")
 
ModulegetModuleFromPortName (std::string full_port_name, std::string err_context="")
 
PortgetPort (std::string full_port_name, std::string err_context="")
 
int getSize () const
 
auto & getName () const
 
std::string ReturnPath () const
 
bool hasConfigCells () const
 
virtual BitConfig getBitConfig (const MRRG &mrrg, const OpGraph &og, const Mapping &map, const ConfigCell &ccell, const MRRGNodesFromOpNode &mrrg_nodes_from_op_node, const MRRGNodesFromValNode &mrrg_nodes_from_val_node) const
 
virtual MRRGcreateMRRG (unsigned contexts)
 
void genVerilogCGRAME (std::string dir)
 
void genVerilogCoreIR (std::string dir, int contexts)
 
void GetModulesToPrint (std::queue< Module * > &ToPrint, std::set< std::string > &PrintedModMap)
 
virtual void GenModuleVerilog ()
 
CoreIR::TypeGenFun makeCoreIRInterfaceGenerator ()
 
CoreIR::ModuleDefGenFun makeCoreIRModuleDefinitonGenerator ()
 
virtual void CoreIRGenModuleVerilog (CoreIR::Context *c, int contexts)
 
bool setNodePosition (const std::string &nodeName, double x, double y)
 
std::pair< bool, std::pair< double, double > > getSubModulePosition (const std::string &submodName)
 
std::pair< bool, std::pair< double, double > > getNodePosition (const std::string &nodeName)
 
bool addsSynchronousCircuitry () const
 

Public Attributes

int pe_conn_in
 
int pe_conn_out
 
int buffer_depth
 
- Public Attributes inherited from Module
std::map< std::string, unsigned > parameterlist
 
std::map< std::string, Port * > ports
 
std::map< Port *, Connection * > connections
 
std::map< std::string, Module * > submodules
 
std::map< std::string, ConfigCell * > configcells
 
std::vector< PortportsToPropagate
 
double area = 0.
 
unsigned int hierarchyLevel = 0
 
bool isLastInHierarchy
 
bool isElastic = false
 
bool submodsSet
 
Location loc
 
int overridenFanoutCount = -1
 
Moduleparent = nullptr
 

Additional Inherited Members

- Protected Member Functions inherited from Module
void GetConfigsToPrint (std::queue< ConfigCell * > &q, std::set< unsigned > &uniq)
 
void GenModuleHeader (bool HasConfig, bool HasRegisters)
 
void GenParameters ()
 
void GenPortSpecs (bool HasConfig, bool HasRegisters)
 
virtual void GenConnections ()
 
virtual void GenFunctionality ()
 
void CoreIRGetModulesToPrint (std::queue< Module * > &ToPrint, std::set< std::string > &PrintedModMap)
 
virtual nlohmann::json CoreIRGenFunctionality ()
 
void GenerateMatrix (StringMatrix &Matrix)
 
void DetermineConnections (StringMatrix &Matrix, PrintList &WireList, PrintList &SubmodList, PrintList &AssignList)
 
virtual std::vector< ResolvedVeroligModuleParameterResolveVerilogParameters () const
 
int FindPortIndex (std::string PortName)
 
int FindSubmoduleIndex (std::string SubmoduleName)
 
- Protected Attributes inherited from Module
unsigned data_size
 
std::string templateName
 
std::string name
 
std::map< std::string, VisualPositionRectsubmodule_relative_position = {}
 
std::map< std::string, VisualPositionPointnode_relative_position = {}
 
bool adds_synchronous_circuitry
 

Detailed Description

Definition at line 30 of file UserModules.h.

Constructor & Destructor Documentation

◆ RIKEN_PE_Elastic()

RIKEN_PE_Elastic::RIKEN_PE_Elastic ( std::string  name,
int  pe_conn_in,
int  pe_conn_out,
int  II,
int  latency,
Location  Loc,
int  type,
int  buffer_depth = 2,
bool  eb_enable = true,
int  contexts = 1,
bool  pred = false,
std::string  pred_type = "full" 
)

Definition at line 35 of file RIKENPE_Elastic.cpp.

◆ ~RIKEN_PE_Elastic()

virtual RIKEN_PE_Elastic::~RIKEN_PE_Elastic ( )
inlinevirtual

Definition at line 38 of file UserModules.h.

Member Function Documentation

◆ GenericName()

std::string RIKEN_PE_Elastic::GenericName ( )
virtual

Reimplemented from Module.

Definition at line 24 of file RIKENPE_Elastic.cpp.

Member Data Documentation

◆ buffer_depth

int RIKEN_PE_Elastic::buffer_depth

Definition at line 35 of file UserModules.h.

◆ pe_conn_in

int RIKEN_PE_Elastic::pe_conn_in

Definition at line 33 of file UserModules.h.

◆ pe_conn_out

int RIKEN_PE_Elastic::pe_conn_out

Definition at line 34 of file UserModules.h.


The documentation for this class was generated from the following files: