Changeset 182 for trunk/platforms
- Timestamp:
- Nov 2, 2011, 9:59:11 PM (13 years ago)
- Location:
- trunk/platforms/caba-vdspin-vci_synthetic_initiator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/caba-vdspin-vci_synthetic_initiator/platform_desc
r105 r182 9 9 ring_rsp_data_size = 33, 10 10 ), 11 Uses('caba:vci_s imple_ram'),11 Uses('caba:vci_synthetic_target'), 12 12 Uses('caba:virtual_dspin_router', flit_width = 40), 13 13 Uses('caba:virtual_dspin_router', flit_width = 33), -
trunk/platforms/caba-vdspin-vci_synthetic_initiator/top.cpp
r179 r182 10 10 #include "mapping_table.h" 11 11 #include "alloc_elems.h" 12 #include "vci_s imple_ram.h"12 #include "vci_synthetic_target.h" 13 13 #include "vci_local_ring_fast.h" 14 14 #include "virtual_dspin_router.h" … … 178 178 } 179 179 180 soclib::caba::VciS impleRam<vci_param> * ram_c0 = (soclib::caba::VciSimpleRam<vci_param> *) malloc(sizeof(soclib::caba::VciSimpleRam<vci_param>) * N_CLUSTERS);181 soclib::caba::VciS impleRam<vci_param> * ram_c1 = (soclib::caba::VciSimpleRam<vci_param> *) malloc(sizeof(soclib::caba::VciSimpleRam<vci_param>) * N_CLUSTERS);180 soclib::caba::VciSyntheticTarget<vci_param> * target_c0 = (soclib::caba::VciSyntheticTarget<vci_param> *) malloc(sizeof(soclib::caba::VciSyntheticTarget<vci_param>) * N_CLUSTERS); 181 soclib::caba::VciSyntheticTarget<vci_param> * target_c1 = (soclib::caba::VciSyntheticTarget<vci_param> *) malloc(sizeof(soclib::caba::VciSyntheticTarget<vci_param>) * N_CLUSTERS); 182 182 for(int i = 0 ; i < X_MAX ; i++) 183 183 for(int j = 0 ; j < Y_MAX ; j++){ … … 186 186 str0 << "Ram_c0_" << (i*Y_MAX+j) ; 187 187 str1 << "Ram_c1_" << (i*Y_MAX+j) ; 188 new(& ram_c0[Y_MAX*i+j]) soclib::caba::VciSimpleRam<vci_param> (str0.str().c_str() , IntTab(i*Y_MAX+j,0), maptab0, soclib::common::Loader(), 0);189 new(& ram_c1[Y_MAX*i+j]) soclib::caba::VciSimpleRam<vci_param> (str1.str().c_str() , IntTab(i*Y_MAX+j,0), maptab1, soclib::common::Loader(), 0);188 new(&target_c0[Y_MAX*i+j]) soclib::caba::VciSyntheticTarget<vci_param> (str0.str().c_str() , IntTab(i*Y_MAX+j,0), maptab0, soclib::common::Loader(), 0); 189 new(&target_c1[Y_MAX*i+j]) soclib::caba::VciSyntheticTarget<vci_param> (str1.str().c_str() , IntTab(i*Y_MAX+j,0), maptab1, soclib::common::Loader(), 0); 190 190 } 191 191 … … 201 201 initiator_c0[i].p_resetn(signal_resetn); 202 202 initiator_c0[i].p_vci(signal_vci_ini_synth_c0[0][i]); 203 ram_c0[i].p_clk(signal_clk);204 ram_c0[i].p_resetn(signal_resetn);205 ram_c0[i].p_vci(signal_vci_ini_synth_c0[1][i]);203 target_c0[i].p_clk(signal_clk); 204 target_c0[i].p_resetn(signal_resetn); 205 target_c0[i].p_vci(signal_vci_ini_synth_c0[1][i]); 206 206 local_ring_c1[i].p_clk(signal_clk); 207 207 local_ring_c1[i].p_resetn(signal_resetn); … … 211 211 initiator_c1[i].p_resetn(signal_resetn); 212 212 initiator_c1[i].p_vci(signal_vci_ini_synth_c1[0][i]); 213 ram_c1[i].p_clk(signal_clk);214 ram_c1[i].p_resetn(signal_resetn);215 ram_c1[i].p_vci(signal_vci_ini_synth_c1[1][i]);213 target_c1[i].p_clk(signal_clk); 214 target_c1[i].p_resetn(signal_resetn); 215 target_c1[i].p_vci(signal_vci_ini_synth_c1[1][i]); 216 216 } 217 217 … … 371 371 //initiator_c1[4].print_trace(); 372 372 //local_ring_c1[4].print_trace(); 373 // ram_c1[4].print_trace();373 //target_c1[4].print_trace(); 374 374 #if defined(DEBUG) 375 375 for(int i = 0 ; i < Y_MAX ; i++){ … … 394 394 //std::cout << "synt_rerror = " << signal_vci_ini_synth_c0[0][i*Y_MAX+j].rerror.read() << std::endl; 395 395 //std::cout << "synt_reop = " << signal_vci_ini_synth_c0[0][i*Y_MAX+j].reop.read() << std::endl; 396 // ram_c0[i*Y_MAX+j].print_trace();396 //target_c0[i*Y_MAX+j].print_trace(); 397 397 //std::cout << std::hex; 398 //std::cout << " ram_cmdval = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].cmdval.read() << std::endl;399 //std::cout << " ram_address = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].address.read() << std::endl;400 //std::cout << " ram_cmd = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].cmd.read() << std::endl;401 //std::cout << " ram_srcid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].srcid.read() << std::endl;402 //std::cout << " ram_trdid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].trdid.read() << std::endl;403 //std::cout << " ram_plen = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].plen.read() << std::endl;404 //std::cout << " ram_eop = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].eop.read() << std::endl;405 //std::cout << " ram_rspval = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rspval.read() << std::endl;406 //std::cout << " ram_rspack = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rspack.read() << std::endl;407 //std::cout << " ram_rsrcid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rsrcid.read() << std::endl;408 //std::cout << " ram_rtrdid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rtrdid.read() << std::endl;409 //std::cout << " ram_rerror = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rerror.read() << std::endl;410 //std::cout << " ram_reop = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].reop.read() << std::endl;398 //std::cout << "target_cmdval = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].cmdval.read() << std::endl; 399 //std::cout << "target_address = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].address.read() << std::endl; 400 //std::cout << "target_cmd = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].cmd.read() << std::endl; 401 //std::cout << "target_srcid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].srcid.read() << std::endl; 402 //std::cout << "target_trdid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].trdid.read() << std::endl; 403 //std::cout << "target_plen = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].plen.read() << std::endl; 404 //std::cout << "target_eop = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].eop.read() << std::endl; 405 //std::cout << "target_rspval = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rspval.read() << std::endl; 406 //std::cout << "target_rspack = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rspack.read() << std::endl; 407 //std::cout << "target_rsrcid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rsrcid.read() << std::endl; 408 //std::cout << "target_rtrdid = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rtrdid.read() << std::endl; 409 //std::cout << "target_rerror = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].rerror.read() << std::endl; 410 //std::cout << "target_reop = " << signal_vci_ini_synth_c0[1][i*Y_MAX+j].reop.read() << std::endl; 411 411 //initiator_c1[i*Y_MAX+j].print_trace(); 412 412 //std::cout << std::hex; … … 427 427 //std::cout << "synt_rerror = " << signal_vci_ini_synth_c1[0][i*Y_MAX+j].rerror.read() << std::endl; 428 428 //std::cout << "synt_reop = " << signal_vci_ini_synth_c1[0][i*Y_MAX+j].reop.read() << std::endl; 429 ram_c1[i*Y_MAX+j].print_trace();429 target_c1[i*Y_MAX+j].print_trace(); 430 430 std::cout << std::hex; 431 std::cout << " ram_cmdval = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].cmdval.read() << std::endl;432 std::cout << " ram_address = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].address.read() << std::endl;433 std::cout << " ram_cmd = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].cmd.read() << std::endl;434 std::cout << " ram_srcid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].srcid.read() << std::endl;435 std::cout << " ram_trdid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].trdid.read() << std::endl;436 std::cout << " ram_pktid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].pktid.read() << std::endl;437 std::cout << " ram_plen = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].plen.read() << std::endl;438 std::cout << " ram_eop = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].eop.read() << std::endl;439 std::cout << " ram_rspval = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rspval.read() << std::endl;440 std::cout << " ram_rspack = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rspack.read() << std::endl;441 std::cout << " ram_rsrcid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rsrcid.read() << std::endl;442 std::cout << " ram_rtrdid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rtrdid.read() << std::endl;443 std::cout << " ram_rpktid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rpktid.read() << std::endl;444 std::cout << " ram_rerror = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rerror.read() << std::endl;445 std::cout << " ram_reop = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].reop.read() << std::endl;431 std::cout << "target_cmdval = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].cmdval.read() << std::endl; 432 std::cout << "target_address = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].address.read() << std::endl; 433 std::cout << "target_cmd = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].cmd.read() << std::endl; 434 std::cout << "target_srcid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].srcid.read() << std::endl; 435 std::cout << "target_trdid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].trdid.read() << std::endl; 436 std::cout << "target_pktid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].pktid.read() << std::endl; 437 std::cout << "target_plen = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].plen.read() << std::endl; 438 std::cout << "target_eop = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].eop.read() << std::endl; 439 std::cout << "target_rspval = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rspval.read() << std::endl; 440 std::cout << "target_rspack = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rspack.read() << std::endl; 441 std::cout << "target_rsrcid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rsrcid.read() << std::endl; 442 std::cout << "target_rtrdid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rtrdid.read() << std::endl; 443 std::cout << "target_rpktid = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rpktid.read() << std::endl; 444 std::cout << "target_rerror = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].rerror.read() << std::endl; 445 std::cout << "target_reop = " << signal_vci_ini_synth_c1[1][i*Y_MAX+j].reop.read() << std::endl; 446 446 #endif 447 447 #if DEBUG==2 … … 473 473 //std::cout << "synt_rerror = " << signal_vci_ini_synth_c1[0][255].rerror.read() << std::endl; 474 474 //std::cout << "synt_reop = " << signal_vci_ini_synth_c1[0][255].reop.read() << std::endl; 475 // ram_c1[4].print_trace();475 //target_c1[4].print_trace(); 476 476 //std::cout << std::hex; 477 //std::cout << " ram_cmdval = " << signal_vci_ini_synth_c1[1][4].cmdval.read() << std::endl;478 //std::cout << " ram_address = " << signal_vci_ini_synth_c1[1][4].address.read() << std::endl;479 //std::cout << " ram_cmd = " << signal_vci_ini_synth_c1[1][4].cmd.read() << std::endl;480 //std::cout << " ram_srcid = " << signal_vci_ini_synth_c1[1][4].srcid.read() << std::endl;481 //std::cout << " ram_trdid = " << signal_vci_ini_synth_c1[1][4].trdid.read() << std::endl;482 //std::cout << " ram_pktid = " << signal_vci_ini_synth_c1[1][4].pktid.read() << std::endl;483 //std::cout << " ram_plen = " << signal_vci_ini_synth_c1[1][4].plen.read() << std::endl;484 //std::cout << " ram_eop = " << signal_vci_ini_synth_c1[1][4].eop.read() << std::endl;485 //std::cout << " ram_rspval = " << signal_vci_ini_synth_c1[1][4].rspval.read() << std::endl;486 //std::cout << " ram_rspack = " << signal_vci_ini_synth_c1[1][4].rspack.read() << std::endl;487 //std::cout << " ram_rsrcid = " << signal_vci_ini_synth_c1[1][4].rsrcid.read() << std::endl;488 //std::cout << " ram_rtrdid = " << signal_vci_ini_synth_c1[1][4].rtrdid.read() << std::endl;489 //std::cout << " ram_rpktid = " << signal_vci_ini_synth_c1[1][4].rpktid.read() << std::endl;490 //std::cout << " ram_rerror = " << signal_vci_ini_synth_c1[1][4].rerror.read() << std::endl;491 //std::cout << " ram_reop = " << signal_vci_ini_synth_c1[1][4].reop.read() << std::endl;477 //std::cout << "target_cmdval = " << signal_vci_ini_synth_c1[1][4].cmdval.read() << std::endl; 478 //std::cout << "target_address = " << signal_vci_ini_synth_c1[1][4].address.read() << std::endl; 479 //std::cout << "target_cmd = " << signal_vci_ini_synth_c1[1][4].cmd.read() << std::endl; 480 //std::cout << "target_srcid = " << signal_vci_ini_synth_c1[1][4].srcid.read() << std::endl; 481 //std::cout << "target_trdid = " << signal_vci_ini_synth_c1[1][4].trdid.read() << std::endl; 482 //std::cout << "target_pktid = " << signal_vci_ini_synth_c1[1][4].pktid.read() << std::endl; 483 //std::cout << "target_plen = " << signal_vci_ini_synth_c1[1][4].plen.read() << std::endl; 484 //std::cout << "target_eop = " << signal_vci_ini_synth_c1[1][4].eop.read() << std::endl; 485 //std::cout << "target_rspval = " << signal_vci_ini_synth_c1[1][4].rspval.read() << std::endl; 486 //std::cout << "target_rspack = " << signal_vci_ini_synth_c1[1][4].rspack.read() << std::endl; 487 //std::cout << "target_rsrcid = " << signal_vci_ini_synth_c1[1][4].rsrcid.read() << std::endl; 488 //std::cout << "target_rtrdid = " << signal_vci_ini_synth_c1[1][4].rtrdid.read() << std::endl; 489 //std::cout << "target_rpktid = " << signal_vci_ini_synth_c1[1][4].rpktid.read() << std::endl; 490 //std::cout << "target_rerror = " << signal_vci_ini_synth_c1[1][4].rerror.read() << std::endl; 491 //std::cout << "target_reop = " << signal_vci_ini_synth_c1[1][4].reop.read() << std::endl; 492 492 493 493 //for(int i = 0 ; i < Y_MAX ; i++){
Note: See TracChangeset
for help on using the changeset viewer.