Changeset 111 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/src/test.cpp
- Timestamp:
- Feb 27, 2009, 7:37:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/src/test.cpp
r108 r111 7 7 */ 8 8 9 #define NB_ITERATION 1289 #define NB_ITERATION 512 10 10 #define CYCLE_MAX (128*NB_ITERATION) 11 11 … … 20 20 21 21 #ifdef STATISTICS 22 morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5, 50);22 morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,CYCLE_MAX); 23 23 #endif 24 24 … … 234 234 address_tmp [i] = address_src [i]; 235 235 236 uint32_t x = rand()%_param->_nb_inst_decod; 236 uint32_t x = rand()%_param->_nb_inst_decod; 237 237 238 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 238 239 { … … 242 243 in_DECOD_IN_CONTEXT_ID [i]->write(context); 243 244 in_DECOD_IN_DEPTH [i]->write(depth [context]); 245 #ifdef DEBUG 246 in_DECOD_IN_ADDRESS [i]->write(address_tmp [context]); 247 #endif 244 248 in_DECOD_IN_ADDRESS_NEXT [i]->write(address_tmp [context]); 245 249 … … 250 254 { 251 255 uint32_t x = rand()%_param->_nb_inst_decod; 256 252 257 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 253 258 { … … 270 275 nb_inst [context] ++; 271 276 address_src [context] ++; 277 278 LABEL(" * nb_inst : %d",nb_inst [context]); 272 279 } 273 280 } … … 284 291 TEST(Tdepth_t ,out_DECOD_OUT_DEPTH [i]->read(),depth [context]); 285 292 TEST(Taddress_t,out_DECOD_OUT_ADDRESS_NEXT [i]->read(),address_dest [context]); 286 293 #ifdef DEBUG 294 TEST(Taddress_t,out_DECOD_OUT_ADDRESS [i]->read(),address_dest [context]); 295 #endif 287 296 nb_inst [context] --; 288 297 address_dest [context] ++; 298 299 LABEL(" * nb_inst : %d",nb_inst [context]); 289 300 } 290 301 }
Note: See TracChangeset
for help on using the changeset viewer.