78 const std::vector<ModuleGenerator::parameter>& ,
79 const std::vector<ModuleGenerator::parameter>& _ports_in,
80 const std::vector<ModuleGenerator::parameter>& _ports_out,
81 const std::vector<ModuleGenerator::parameter>& )
92 const auto top_bh = HLSMgr->CGetFunctionBehavior(function_id)->CGetBehavioralHelper();
93 const auto top_fname = top_bh->GetMangledFunctionName();
94 const auto& iface_attrs = HLSMgr->module_arch->GetArchitecture(top_fname)->ifaces.at(bundle_name);
96 if(iface_attrs.find(FunctionArchitecture::iface_register) != iface_attrs.end())
98 THROW_ERROR(
"Interface none registered not yet implemented.");
100 out <<
"assign " << _ports_out[
o_out1].name <<
" = " << _ports_in[
i_in2].name <<
" >> (8*" << _ports_in[
i_in1].name
Data structure representing the entire HLS information.
#define STR_CST_interface_parameter_keyword
interface_parameter_keyword
const std::string & get_id() const
Return the identifier associated with the structural_object.
#define THROW_UNREACHABLE(str_expr)
helper function used to specify that some points should never be reached
void InternalExec(std::ostream &out, structural_objectRef mod, unsigned int function_id, vertex op_v, const HDLWriter_Language language, const std::vector< ModuleGenerator::parameter > &_p, const std::vector< ModuleGenerator::parameter > &_ports_in, const std::vector< ModuleGenerator::parameter > &_ports_out, const std::vector< ModuleGenerator::parameter > &_ports_inout) final
This class writes different HDL based descriptions (VHDL, Verilog, SystemC) starting from a structura...
boost::graph_traits< graph >::vertex_descriptor vertex
vertex definition.
#define THROW_ERROR(str_expr)
helper function used to throw an error in a standard way
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...
Read_noneModuleGenerator(const HLS_managerRef &HLSMgr)
A brief description of the C++ Header File.
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...