57 const DesignFlowManagerConstRef _design_flow_manager,
59 :
fsm_controller(_Param, _HLSMgr, _funId, _design_flow_manager, _hls_flow_step_type)
68 auto omp_functions = GetPointer<OmpFunctions>(
HLSMgr->Rfuns);
70 if(omp_functions->kernel_functions.find(
funId) != omp_functions->kernel_functions.end())
74 if(omp_functions->parallelized_functions.find(
funId) != omp_functions->parallelized_functions.end())
78 if(omp_functions->atomic_functions.find(
funId) != omp_functions->atomic_functions.end())
91 auto num_slots =
ceil_log2(
parameters->getOption<
unsigned long long int>(OPT_context_switch));
107 auto omp_functions = GetPointer<OmpFunctions>(
HLSMgr->Rfuns);
109 if(omp_functions->kernel_functions.find(
funId) != omp_functions->kernel_functions.end())
113 if(omp_functions->parallelized_functions.find(
funId) != omp_functions->parallelized_functions.end())
117 if(omp_functions->atomic_functions.find(
funId) != omp_functions->atomic_functions.end())
#define DEBUG_LEVEL_VERY_PEDANTIC
extremely verbose debugging print is performed.
const HLS_managerRef HLSMgr
information about all the HLS synthesis
Data structure representing the entire HLS information.
refcount< structural_type_descriptor > structural_type_descriptorRef
RefCount type definition of the structural_type_descriptor class structure.
File containing functions and utilities to support the printing of debug messagges.
Base class for all the controller creation algorithms.
#define PRINT_DBG_MEX(dbgLevel, curDbgLevel, mex)
We are producing a debug version of the program, so the message is printed;.
#define DEBUG_LEVEL_PEDANTIC
very verbose debugging print is performed.
Structure representing the most relevant information about the type of a structural object...
controller_cs(const ParameterConstRef Param, const HLS_managerRef HLSMgr, unsigned int funId, const DesignFlowManagerConstRef design_flow_manager, const HLSFlowStep_Type hls_flow_step_type)
Constructor.
void add_selector_register_file_port(structural_objectRef circuit, structural_managerRef SM)
const structural_objectRef get_circ() const
Get a reference to circ field.
void add_common_ports(structural_objectRef circuit, structural_managerRef SM) override
This member function adds the standard ports (clock, reset, done and command ones) to a circuit...
virtual void add_common_ports(structural_objectRef circuit, structural_managerRef SM)
This member function adds the standard ports (clock, reset, done and command ones) to a circuit...
mathematical utility function not provided by standard libraries
const unsigned int funId
identifier of the function to be processed (0 means that it is a global step)
~controller_cs() override
Destructor.
#define STR(s)
Macro which performs a lexical_cast to a string.
T ceil_log2(T x)
Return the smallest n such that 2**n >= X.
static void add_NP_functionality(structural_objectRef cir, NP_functionality::NP_functionaly_type dt, std::string functionality_description)
Add a not-parsed functionality.
void add_correct_transition_memory(const std::string &state_representation, structural_managerRef SM) override
Set the correct NP functionality.
static structural_objectRef add_port(const std::string &id, port_o::port_direction pdir, structural_objectRef owner, structural_type_descriptorRef type_descr, unsigned int treenode=0)
Create a new port.
const ParameterConstRef parameters
Set of input parameters.
This file collects some utility functions and macros.
This class describes all classes used to represent a structural object.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
#define SELECTOR_REGISTER_FILE
Class implementation of the structural_manager.
int debug_level
The debug level.
Datastructure to describe functions allocation in high-level synthesis.
Data structure definition for high-level synthesis flow.