Changeset 131 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic
- Timestamp:
- Jul 8, 2009, 8:40:08 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/src/test.cpp
r113 r131 32 32 exit (EXIT_FAILURE); 33 33 } 34 35 _model.set_model(MODEL_SYSTEMC,true); 34 36 35 37 Tusage_t _usage = USE_ALL; … … 123 125 // Initialisation 124 126 125 sc_start(0);127 SC_START(0); 126 128 127 129 for (uint32_t i=0; i<_param->_nb_port_write; i++) … … 134 136 NRESET.write(0); 135 137 136 sc_start(5);138 SC_START(5); 137 139 138 140 NRESET.write(1); 139 141 142 for (uint32_t i=0; i<_param->_nb_port_write; i++) 143 TEST(Tcontrol_t,WRITE_ACK [i],1); 144 for (uint32_t i=0; i<_param->_nb_port_read; i++) 145 TEST(Tcontrol_t,READ_ACK [i],1); 146 for (uint32_t i=0; i<_param->_nb_port_read_write; i++) 147 TEST(Tcontrol_t,READ_WRITE_ACK [i],1); 140 148 141 149 for (uint32_t nb_iteration=0; nb_iteration < NB_ITERATION; nb_iteration ++) … … 159 167 while (nb_ack < _param->_nb_word) 160 168 { 169 161 170 cout << "cycle : " << static_cast<uint32_t> (simulation_cycle()) << endl; 162 171 … … 196 205 } 197 206 198 sc_start(1);207 SC_START(1); 199 208 200 209 // reset write_val port … … 219 228 } 220 229 221 sc_start(0);230 // SC_START(0); 222 231 } 223 232 … … 266 275 267 276 268 sc_start(1);277 SC_START(1); 269 278 270 279 // reset write_val port … … 297 306 } 298 307 299 sc_start(0);308 // SC_START(0); 300 309 } 301 310 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h
r82 r131 114 114 115 115 #ifdef SYSTEMC 116 public : void constant (void); 116 117 public : void transition (void); 117 118 //public : void genMoore (void) {/* empty */}; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
r123 r131 56 56 if (usage_is_set(_usage,USE_SYSTEMC)) 57 57 { 58 59 # ifdef SYSTEMCASS_SPECIFIC 60 constant(); 61 #else 62 SC_METHOD (constant); 63 // dont_initialize (); 64 #endif 65 58 66 SC_METHOD (transition); 59 67 dont_initialize (); 60 68 sensitive << (*(in_CLOCK)).pos(); 61 69 62 70 SC_METHOD (genMealy_read); 63 71 dont_initialize (); … … 93 101 } 94 102 # endif 95 96 for (uint32_t i=0; i<_param->_nb_port_read ; i++)97 PORT_WRITE(out_READ_ACK [i], 1);98 for (uint32_t i=0; i<_param->_nb_port_write ; i++)99 PORT_WRITE(out_WRITE_ACK [i], 1);100 for (uint32_t i=0; i<_param->_nb_port_read_write ; i++)101 PORT_WRITE(out_READ_WRITE_ACK [i], 1);102 103 } 103 104 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp
r128 r131 114 114 115 115 #if defined(DEBUG_RegisterFile_Monolithic) and DEBUG_RegisterFile_Monolithic and (DEBUG >= DEBUG_TRACE) 116 if (0) 116 # if 1 117 117 { 118 118 log_printf(TRACE,RegisterFile,FUNCTION," * Dump RegisterFile"); … … 136 136 } 137 137 } 138 # endif 138 139 #endif 139 140
Note: See TracChangeset
for help on using the changeset viewer.