Changeset 15 for trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
- Timestamp:
- Apr 5, 2007, 4:17:30 PM (17 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.