Changeset 41 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
- Timestamp:
- Jun 7, 2007, 9:13:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
r15 r41 27 27 _param (param) 28 28 { 29 log_printf(FUNC,RegisterFile_Monolithic,"RegisterFile_Monolithic","Begin"); 30 31 #ifdef SYSTEMC 32 log_printf(INFO,RegisterFile_Monolithic,"RegisterFile_Monolithic","Allocation"); 33 34 allocation (); 35 #endif 36 29 37 #ifdef STATISTICS 30 38 _stat = new Statistics (static_cast<string>(_name), 31 39 param_statistics , 32 40 param); 33 #endif34 35 #ifdef VHDL_TESTBENCH36 _vhdl_testbench = new Vhdl_Testbench (_name);37 vhdl_testbench_port (*_vhdl_testbench);38 _vhdl_testbench->set_clock ("in_CLOCK",true);39 41 #endif 40 42 … … 45 47 46 48 #ifdef SYSTEMC 47 allocation ();48 49 49 SC_METHOD (transition); 50 50 dont_initialize (); … … 72 72 PORT_WRITE(out_WRITE_ACK [i], 1); 73 73 #endif 74 75 log_printf(FUNC,RegisterFile_Monolithic,"RegisterFile_Monolithic","End"); 74 76 }; 75 77 76 78 RegisterFile_Monolithic::~RegisterFile_Monolithic (void) 77 79 { 78 #ifdef SYSTEMC79 deallocation ();80 #endif81 82 #ifdef VHDL_TESTBENCH83 // generate the test bench84 _vhdl_testbench->generate_file();85 delete _vhdl_testbench;86 #endif87 88 80 #ifdef STATISTICS 89 81 _stat->generate_file(statistics(0)); 90 82 delete _stat; 83 #endif 84 85 #ifdef SYSTEMC 86 deallocation (); 91 87 #endif 92 88 };
Note: See TracChangeset
for help on using the changeset viewer.