#ifdef SYSTEMC /* * $Id$ * * [ Description ] * */ #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" namespace morpheo { namespace behavioural { @NAMESPACE_BEGIN void @COMPONENT::allocation (void) { string rename; log_printf(FUNC,@COMPONENT,"allocation","Begin"); #ifdef POSITION _position = new Position (); Entity * entity = _position->set_entity (_name , "@COMPONENT", COMBINATORY ); _interfaces = entity->set_interfaces(); #else _interfaces = new Interfaces(); #endif // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Interface * interface_ = _interfaces->set_interface("", IN ,WEST, "Generalist interface"); in_CLOCK = interface_->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO); in_NRESET = interface_->set_signal_in ("nreset",1); // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef POSITION _position->generate_file(); #endif log_printf(FUNC,@COMPONENT,"allocation","End"); }; @NAMESPACE_END }; // end namespace behavioural }; // end namespace morpheo #endif