Changeset 351 for branches/v5/platforms/tsar_generic_mmu/top.cpp
- Timestamp:
- Apr 4, 2013, 2:36:54 PM (11 years ago)
- Location:
- branches/v5/platforms/tsar_generic_mmu
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/v5/platforms/tsar_generic_mmu/top.cpp
r342 r351 424 424 std::cout << maptabd << std::endl; 425 425 426 // coherence network427 // - tgtid_c_proc = srcid_c_proc = local procid428 // - tgtid_c_memc = srcid_c_memc = NB_PROCS_MAX429 MappingTable maptabc(address_width,430 IntTab(x_width + y_width, srcid_width - x_width - y_width),431 IntTab(x_width + y_width, srcid_width - x_width - y_width),432 0x00FF0000);433 434 for (size_t x = 0; x < CLUSTER_X; x++)435 {436 for (size_t y = 0; y < CLUSTER_Y; y++)437 {438 sc_uint<address_width> offset = cluster(x,y) << (address_width-x_width-y_width);439 440 // cleanup requests must be routed to the memory cache441 std::ostringstream sh;442 sh << "c_seg_memc_" << x << "_" << y;443 maptabc.add(Segment(sh.str(), (NB_PROCS_MAX << (address_width - srcid_width)) + offset,444 0x10, IntTab(cluster(x,y), NB_PROCS_MAX), false));445 446 // update & invalidate requests must be routed to the proper processor447 for ( size_t p = 0 ; p < NB_PROCS_MAX ; p++)448 {449 std::ostringstream sp;450 sp << "c_seg_proc_" << x << "_" << y << "_" << p;451 maptabc.add( Segment( sp.str() , (p << (address_width - srcid_width)) + offset ,452 0x10 , IntTab(cluster(x,y), p) , false));453 }454 }455 }456 std::cout << maptabc << std::endl;457 426 458 427 // external network … … 557 526 cluster(x,y), 558 527 maptabd, 559 maptabc,560 528 maptabx, 561 529 x_width, 562 530 y_width, 531 4, //local_id_width 563 532 MEMC_TGTID, 564 533 XICU_TGTID, … … 724 693 std::cout << " ************************************************" << std::endl; 725 694 726 //clusters[0][0]->proc[0]->print_trace();695 // clusters[0][0]->proc[0]->print_trace(); 727 696 // clusters[0][0]->proc[1]->print_trace(); 728 clusters[0][0]->proc[2]->print_trace();697 // clusters[1][0]->proc[2]->print_trace(); 729 698 // clusters[0][0]->proc[3]->print_trace(); 730 clusters[0][0]->memc->print_trace();699 // clusters[0][0]->memc->print_trace(); 731 700 // trace proc[debug_proc_id] 732 /*733 701 if ( debug_proc_id < (CLUSTER_X * CLUSTER_Y * NB_PROCS_MAX) ) 734 702 { … … 739 707 740 708 clusters[proc_x][proc_y]->signal_vci_ini_d_proc[0].print_trace("proc_ini_d"); 741 clusters[proc_x][proc_y]->signal_ vci_ini_c_proc[0].print_trace("proc_ini_c");742 clusters[proc_x][proc_y]->signal_ vci_tgt_c_proc[0].print_trace("proc_tgt_c");709 clusters[proc_x][proc_y]->signal_dspin_c_from_proc[0].print_trace("from_proc_c"); 710 clusters[proc_x][proc_y]->signal_dspin_c_to_proc[0].print_trace("to_proc_c"); 743 711 } 744 712 … … 752 720 753 721 clusters[memc_x][memc_y]->signal_vci_tgt_d_memc.print_trace("memc_tgt_d"); 754 clusters[memc_x][memc_y]->signal_ vci_ini_c_memc.print_trace("memc_ini_c");755 clusters[memc_x][memc_y]->signal_ vci_tgt_c_memc.print_trace("memc_tgt_c");722 clusters[memc_x][memc_y]->signal_dspin_c_from_memc.print_trace("from_memc_c"); 723 clusters[memc_x][memc_y]->signal_dspin_c_to_memc.print_trace("to_memc_c"); 756 724 } 757 725 … … 776 744 // clusters[1][1]->signal_vci_tgt_d_mdma.print_trace("mdma_1_1_tgt_d "); 777 745 // clusters[1][1]->signal_vci_ini_d_mdma.print_trace("mdma_1_1_ini_d "); 778 */779 746 } 780 747
Note: See TracChangeset
for help on using the changeset viewer.