- Timestamp:
- Jun 5, 2007, 11:06:46 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
r15 r40 29 29 log_printf(FUNC,@COMPONENT,"@COMPONENT","Begin"); 30 30 31 #ifdef SYSTEMC 32 log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation"); 33 34 allocation (); 35 #endif 36 31 37 #ifdef STATISTICS 32 38 log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation of statistics"); … … 41 47 log_printf(INFO,@COMPONENT,"@COMPONENT","Creation of a testbench"); 42 48 43 // Creation of a testbench44 // -> port45 // -> clock's signals46 49 _vhdl_testbench = new Vhdl_Testbench (_name); 47 50 #endif … … 54 57 #endif 55 58 56 #ifdef VHDL_TESTBENCH57 // must be invoke after affect of port58 _vhdl_testbench->set_clock ("in_CLOCK",true);59 #endif60 61 59 #ifdef SYSTEMC 62 log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation");63 64 allocation ();65 66 60 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 67 61 log_printf(INFO,@COMPONENT,"@COMPONENT","Method - transition"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r15 r40 19 19 log_printf(FUNC,@COMPONENT,"allocation","Begin"); 20 20 21 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 22 in_CLOCK = new SC_CLOCK ("in_CLOCK"); 23 //#endif 24 in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET"); 21 #ifdef POSITION 22 _position = new Position (); 23 24 Entity * entity = _position->set_entity (_name , 25 "@COMPONENT", 26 COMBINATORY ); 27 28 _interfaces = entity->set_interfaces(); 29 #else 30 _interfaces = new Interfaces(); 31 #endif 32 33 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 35 Interface * interface_ = _interfaces->set_interface("", IN ,WEST, "Generalist interface"); 36 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); 39 25 40 26 41 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 42 43 #ifdef POSITION 44 _position->generate_file(); 45 #endif 27 46 28 47 log_printf(FUNC,@COMPONENT,"allocation","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp
r15 r40 24 24 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 #ifdef POSITION 27 delete _position; 28 #else 29 delete _interfaces; 30 #endif 31 26 32 log_printf(FUNC,@COMPONENT,"deallocation","End"); 27 33 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl.cpp
r2 r40 17 17 { 18 18 log_printf(FUNC,@COMPONENT,"vhdl","Begin"); 19 19 20 Vhdl vhdl (_name); 20 21 … … 26 27 27 28 vhdl.generate_file(); 29 30 delete vhdl; 31 28 32 log_printf(FUNC,@COMPONENT,"vhdl","End"); 29 30 33 }; 31 34 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_port.cpp
r15 r40 9 9 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" 10 10 11 #ifdef VHDL_TESTBENCH12 # define VHDL_SET_PORT(name,direction,size) do {vhdl.set_port (name,direction,size); _vhdl_testbench->set_port (name,direction,size);} while(0)13 #else14 # define VHDL_SET_PORT(name,direction,size) vhdl.set_port (name,direction,size)15 #endif16 17 11 namespace morpheo { 18 12 namespace behavioural { … … 23 17 log_printf(FUNC,@COMPONENT,"vhdl_port","Begin"); 24 18 25 vhdl.set_port (" in_CLOCK" , IN, 1); 26 VHDL_SET_PORT (" in_NRESET", IN, 1); 19 _interfaces->set_port(vhdl); 20 21 #ifdef VHDL_TESTBENCH 22 _interfaces->set_port(_vhdl_testbench); 23 _vhdl_testbench->set_clock ("in_CLOCK",true); 24 #endif 27 25 28 26 log_printf(FUNC,@COMPONENT,"vhdl_port","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_testbench_transition.cpp
r2 r40 20 20 sc_start(0); 21 21 22 // In order with file @COMPONENT_vhdl_testbench_port.cpp 23 // Warning : if a output depend of a subcomponent, take directly the port of subcomponent 24 // (because we have no control on the ordonnancer's policy) 25 26 _vhdl_testbench->add_input (PORT_READ( in_NRESET)); 22 _interfaces->testbench(_vhdl_testbench); 27 23 28 24 // add_test :
Note: See TracChangeset
for help on using the changeset viewer.