Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/Makefile
r81 r88 23 23 library_clean : RegisterFile_Monolithic_library_clean 24 24 25 local_clean : 26 25 27 include ../Makefile.deps 26 28 include $(DIR_MORPHEO)/Behavioural/Makefile.flags -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/src/test.cpp
r82 r88 32 32 exit (EXIT_FAILURE); 33 33 } 34 35 Tusage_t _usage = USE_ALL; 36 37 // _usage = usage_unset(_usage,USE_SYSTEMC ); 38 // _usage = usage_unset(_usage,USE_VHDL ); 39 // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH ); 40 // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT); 41 // _usage = usage_unset(_usage,USE_POSITION ); 42 // _usage = usage_unset(_usage,USE_STATISTICS ); 43 // _usage = usage_unset(_usage,USE_INFORMATION ); 34 44 35 45 #ifdef STATISTICS … … 42 52 #endif 43 53 ,_param 44 , USE_ALL);54 ,_usage); 45 55 46 56 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h
r81 r88 34 34 uint32_t nb_word , 35 35 uint32_t size_word ); 36 public : Parameters (Parameters & param) ;36 // public : Parameters (Parameters & param) ; 37 37 public : ~Parameters () ; 38 38 39 public : void copy (void); 40 39 41 public : Parameters_test msg_error (void); 42 40 43 public : std::string print (uint32_t depth); 41 44 public : friend std::ostream& operator<< (std::ostream& output_stream, -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/Parameters.cpp
r81 r88 32 32 }; 33 33 34 Parameters::Parameters (Parameters & param) : 35 _nb_port_read (param._nb_port_read ), 36 _nb_port_write (param._nb_port_write), 37 _nb_port_read_write(param._nb_port_read_write), 38 _nb_word (param._nb_word ), 39 _size_word (param._size_word ), 40 _size_address (param._size_address ), 41 _have_port_address (param._have_port_address) 34 // Parameters::Parameters (Parameters & param) : 35 // _nb_port_read (param._nb_port_read ), 36 // _nb_port_write (param._nb_port_write), 37 // _nb_port_read_write(param._nb_port_read_write), 38 // _nb_word (param._nb_word ), 39 // _size_word (param._size_word ), 40 // _size_address (param._size_address ), 41 // _have_port_address (param._have_port_address) 42 // { 43 // test(); 44 // }; 45 46 Parameters::~Parameters () 42 47 { 43 test();44 48 }; 45 49 46 Parameters::~Parameters () 47 { }; 50 void Parameters::copy (void) 51 { 52 }; 48 53 49 54 }; // end namespace registerfile_monolithic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
r81 r88 33 33 log_printf(FUNC,RegisterFile_Monolithic,"RegisterFile_Monolithic","Begin"); 34 34 35 #if DEBUG_RegisterFile_Monolithic == true 36 log_printf(INFO,RegisterFile_Monolithic,FUNCTION,_("<%s> Parameters"),_name.c_str()); 37 38 std::cout << *param << std::endl; 39 #endif 40 35 41 log_printf(INFO,RegisterFile_Monolithic,"RegisterFile_Monolithic","Allocation"); 36 42 allocation (); 37 43 38 44 #ifdef STATISTICS 39 if ( _usage & USE_STATISTICS)45 if (usage_is_set(_usage,USE_STATISTICS)) 40 46 statistics_declaration(param_statistics); 41 47 #endif … … 47 53 48 54 #ifdef SYSTEMC 49 if ( _usage & USE_SYSTEMC)55 if (usage_is_set(_usage,USE_SYSTEMC)) 50 56 { 51 57 SC_METHOD (transition); … … 102 108 { 103 109 #ifdef STATISTICS 104 if ( _usage & USE_STATISTICS)110 if (usage_is_set(_usage,USE_STATISTICS)) 105 111 delete _stat; 106 112 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_allocation.cpp
r81 r88 120 120 121 121 // ----- Register 122 reg_DATA = new Tdata_t [_param->_nb_word]; 122 if (usage_is_set(_usage,USE_SYSTEMC)) 123 reg_DATA = new Tdata_t [_param->_nb_word]; 123 124 124 125 #ifdef POSITION 125 _component->generate_file(); 126 if (usage_is_set(_usage,USE_POSITION)) 127 _component->generate_file(); 126 128 #endif 127 129 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_deallocation.cpp
r81 r88 18 18 delete _component; 19 19 20 if ( _usage & USE_SYSTEMC)20 if (usage_is_set(_usage,USE_SYSTEMC)) 21 21 { 22 22 delete in_CLOCK; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_end_cycle.cpp
r81 r88 20 20 21 21 #ifdef STATISTICS 22 _stat->end_cycle(); 22 if (usage_is_set(_usage,USE_STATISTICS)) 23 _stat->end_cycle(); 23 24 #endif 24 25 … … 27 28 28 29 // sc_start(0); 29 _interfaces->testbench(); 30 if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) 31 _interfaces->testbench(); 30 32 #endif 31 33 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp
r81 r88 24 24 { 25 25 #ifdef STATISTICS 26 (*_stat_nb_write) ++; 26 if (usage_is_set(_usage,USE_STATISTICS)) 27 (*_stat_nb_write) ++; 27 28 #endif 28 29 … … 49 50 { 50 51 #ifdef STATISTICS 51 (*_stat_nb_write) ++; 52 if (usage_is_set(_usage,USE_STATISTICS)) 53 (*_stat_nb_write) ++; 52 54 #endif 53 55 … … 67 69 else 68 70 { 69 (*_stat_nb_read) ++; 71 if (usage_is_set(_usage,USE_STATISTICS)) 72 (*_stat_nb_read) ++; 70 73 } 71 74 #endif … … 74 77 75 78 #ifdef STATISTICS 76 for (uint32_t i=0; i<_param->_nb_port_read; i++) 77 if ( PORT_READ(in_READ_VAL [i]) == 1) 78 (*_stat_nb_read) ++; 79 if (usage_is_set(_usage,USE_STATISTICS)) 80 for (uint32_t i=0; i<_param->_nb_port_read; i++) 81 if ( PORT_READ(in_READ_VAL [i]) == 1) 82 (*_stat_nb_read) ++; 79 83 #endif 80 84
Note: See TracChangeset
for help on using the changeset viewer.