Changeset 131 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/src/test.cpp
- Timestamp:
- Jul 8, 2009, 8:40:08 PM (15 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.