- Timestamp:
- Apr 5, 2007, 4:17:30 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
r2 r15 30 30 31 31 #ifdef STATISTICS 32 log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation of statistics"); 33 32 34 // Allocation of statistics 33 35 _stat = new Statistics (static_cast<string>(_name), … … 37 39 38 40 #ifdef VHDL_TESTBENCH 41 log_printf(INFO,@COMPONENT,"@COMPONENT","Creation of a testbench"); 42 39 43 // Creation of a testbench 40 44 // -> port 41 45 // -> clock's signals 42 46 _vhdl_testbench = new Vhdl_Testbench (_name); 43 vhdl_testbench_port ();44 _vhdl_testbench->set_clock ("in_CLOCK",true);45 47 #endif 46 48 47 49 #ifdef VHDL 48 50 // generate the vhdl 51 log_printf(INFO,@COMPONENT,"@COMPONENT","Generate the vhdl"); 52 49 53 vhdl(); 50 54 #endif 51 55 56 #ifdef VHDL_TESTBENCH 57 // must be invoke after affect of port 58 _vhdl_testbench->set_clock ("in_CLOCK",true); 59 #endif 60 52 61 #ifdef SYSTEMC 62 log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation"); 63 53 64 allocation (); 65 66 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 67 log_printf(INFO,@COMPONENT,"@COMPONENT","Method - transition"); 54 68 55 69 SC_METHOD (transition); 56 70 dont_initialize (); 57 71 sensitive_pos << *(in_CLOCK); 58 59 // SC_METHOD (genMoore); 60 // dont_initialize (); 61 // sensitive_neg << *(in_CLOCK); 72 //#endif 62 73 63 74 #ifdef SYSTEMCASS_SPECIFIC … … 74 85 75 86 #ifdef VHDL_TESTBENCH 87 log_printf(INFO,@COMPONENT,"~@COMPONENT","Generate Testbench file"); 88 76 89 // generate the test bench 77 90 _vhdl_testbench->generate_file(); … … 80 93 81 94 #ifdef STATISTICS 95 log_printf(INFO,@COMPONENT,"~@COMPONENT","Generate Statistics file"); 96 82 97 _stat->generate_file(statistics(0)); 83 98 … … 86 101 87 102 #ifdef SYSTEMC 103 log_printf(INFO,@COMPONENT,"~@COMPONENT","Deallocation"); 104 88 105 deallocation (); 89 106 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r2 r15 19 19 log_printf(FUNC,@COMPONENT,"allocation","Begin"); 20 20 21 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 21 22 in_CLOCK = new SC_CLOCK ("in_CLOCK"); 23 //#endif 22 24 in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET"); 23 25 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp
r2 r15 17 17 log_printf(FUNC,@COMPONENT,"deallocation","Begin"); 18 18 19 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 19 20 delete in_CLOCK; 21 //#endif 20 22 delete in_NRESET; 21 23 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_transition.cpp
r2 r15 1 1 #ifdef SYSTEMC 2 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 2 3 /* 3 4 * $Id$ … … 32 33 }; // end namespace morpheo 33 34 #endif 35 //#endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_port.cpp
r2 r15 9 9 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" 10 10 11 #ifdef VHDL_TESTBENCH 12 # define VHDL_SET_PORT(name,direction,size) do {vhdl.set_port (name,direction,size); _vhdl_testbench->set_port (name,direction,size);} while(0) 13 #else 14 # define VHDL_SET_PORT(name,direction,size) vhdl.set_port (name,direction,size) 15 #endif 16 11 17 namespace morpheo { 12 18 namespace behavioural { … … 18 24 19 25 vhdl.set_port (" in_CLOCK" , IN, 1); 20 vhdl.set_port(" in_NRESET", IN, 1);26 VHDL_SET_PORT (" in_NRESET", IN, 1); 21 27 22 28 log_printf(FUNC,@COMPONENT,"vhdl_port","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters.cpp
r2 r15 21 21 Parameters::Parameters (Parameters & param) 22 22 { 23 log_printf(FUNC,@COMPONENT,"Parameters ","Begin");23 log_printf(FUNC,@COMPONENT,"Parameters (copy)","Begin"); 24 24 test(); 25 log_printf(FUNC,@COMPONENT,"Parameters ","End");25 log_printf(FUNC,@COMPONENT,"Parameters (copy)","End"); 26 26 }; 27 27 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp
r3 r15 21 21 22 22 xml.balise_open("@COMPONENT_LOWER"); 23 // xml. singleton_begin("size_data"); 24 // xml. attribut("value",toString(_size_data)); 25 // xml. singleton_end(); 26 // xml. singleton_begin("nb_port "); 27 // xml. attribut("value",toString(_nb_port)); 28 // xml. singleton_end(); 23 // xml.singleton_begin("size_data"); xml.attribut("value",toString(_size_data)); xml.singleton_end(); 24 // xml.singleton_begin("nb_port "); xml.attribut("value",toString(_nb_port )); xml.singleton_end(); 29 25 xml.balise_close(); 30 26
Note: See TracChangeset
for help on using the changeset viewer.