Changeset 42 for trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
- Timestamp:
- Jul 5, 2007, 5:50:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r40 r42 19 19 log_printf(FUNC,@COMPONENT,"allocation","Begin"); 20 20 21 _component = new Component (); 22 23 Entity * entity = _component->set_entity (_name 21 24 #ifdef POSITION 22 _position = new Position (); 23 24 Entity * entity = _position->set_entity (_name , 25 "@COMPONENT", 26 COMBINATORY ); 25 ,"@COMPONENT" 26 ,COMBINATORY 27 #endif 28 ); 27 29 28 30 _interfaces = entity->set_interfaces(); 29 #else30 _interfaces = new Interfaces();31 #endif32 31 33 32 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 33 35 Interface * interface_ = _interfaces->set_interface("", IN ,WEST, "Generalist interface"); 34 Interface * interface = _interfaces->set_interface("" 35 #ifdef POSITION 36 ,IN 37 ,SOUTH, 38 "Generalist interface" 39 #endif 40 ); 36 41 37 in_CLOCK = interface _->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);38 in_NRESET = interface _->set_signal_in <Tcontrol_t> ("nreset",1);42 in_CLOCK = interface->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO); 43 in_NRESET = interface->set_signal_in <Tcontrol_t> ("nreset",1); 39 44 40 45 … … 42 47 43 48 #ifdef POSITION 44 _ position->generate_file();49 _component->generate_file(); 45 50 #endif 46 51 47 log_printf(FUNC,@COMPONENT,"allocation","End");52 Log_printf(FUNC,@COMPONENT,"allocation","End"); 48 53 }; 49 54
Note: See TracChangeset
for help on using the changeset viewer.