Changeset 428 for trunk/platforms/tsar_generic_xbar/top.cpp
- Timestamp:
- Jul 1, 2013, 9:51:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/top.cpp
r404 r428 241 241 #define FBUF_TGTID 4 242 242 #define BDEV_TGTID 5 243 #define MNIC_TGTID 6244 #define BROM_TGTID 7243 #define BROM_TGTID 6 244 #define MNIC_TGTID 7 245 245 246 246 ///////////////////////////////// … … 250 250 using namespace soclib::caba; 251 251 using namespace soclib::common; 252 253 252 254 253 char soft_name[256] = SOFT_NAME; // pathname to binary code … … 386 385 int_vci_wrplen_width> vci_param_int; 387 386 388 typedef soclib::caba::VciParams Bis<ext_vci_cell_width,389 390 391 392 393 394 395 396 397 387 typedef soclib::caba::VciParams<ext_vci_cell_width, 388 ext_vci_plen_width, 389 ext_vci_address_width, 390 ext_vci_rerror_width, 391 ext_vci_clen_width, 392 ext_vci_rflag_width, 393 ext_vci_srcid_width, 394 ext_vci_pktid_width, 395 ext_vci_trdid_width, 396 ext_vci_wrplen_width> vci_param_ext; 398 397 399 398 #if USE_OPENMP … … 499 498 sc_clock signal_clk("clk"); 500 499 sc_signal<bool> signal_resetn("resetn"); 500 501 enum { 502 NORTH = VirtualDspinRouter<dspin_cmd_width>::NORTH, 503 SOUTH = VirtualDspinRouter<dspin_cmd_width>::SOUTH, 504 EAST = VirtualDspinRouter<dspin_cmd_width>::EAST, 505 WEST = VirtualDspinRouter<dspin_cmd_width>::WEST, 506 LOCAL = VirtualDspinRouter<dspin_cmd_width>::LOCAL 507 }; 501 508 502 509 // Horizontal inter-clusters DSPIN signals … … 649 656 for (size_t y = 0; y < CLUSTER_Y; y++){ 650 657 for (size_t k = 0; k < 2; k++){ 651 clusters[x][y]->p_cmd_out[k][EAST] 652 clusters[x+1][y]->p_cmd_in[k][WEST] 653 clusters[x][y]->p_cmd_in[k][EAST] 654 clusters[x+1][y]->p_cmd_out[k][WEST] 655 clusters[x][y]->p_rsp_out[k][EAST] 656 clusters[x+1][y]->p_rsp_in[k][WEST] 657 clusters[x][y]->p_rsp_in[k][EAST] 658 clusters[x+1][y]->p_rsp_out[k][WEST] 658 clusters[x][y]->p_cmd_out[k][EAST] (signal_dspin_h_cmd_inc[x][y][k]); 659 clusters[x+1][y]->p_cmd_in[k][WEST] (signal_dspin_h_cmd_inc[x][y][k]); 660 clusters[x][y]->p_cmd_in[k][EAST] (signal_dspin_h_cmd_dec[x][y][k]); 661 clusters[x+1][y]->p_cmd_out[k][WEST] (signal_dspin_h_cmd_dec[x][y][k]); 662 clusters[x][y]->p_rsp_out[k][EAST] (signal_dspin_h_rsp_inc[x][y][k]); 663 clusters[x+1][y]->p_rsp_in[k][WEST] (signal_dspin_h_rsp_inc[x][y][k]); 664 clusters[x][y]->p_rsp_in[k][EAST] (signal_dspin_h_rsp_dec[x][y][k]); 665 clusters[x+1][y]->p_rsp_out[k][WEST] (signal_dspin_h_rsp_dec[x][y][k]); 659 666 } 660 667 } … … 668 675 for (size_t x = 0; x < CLUSTER_X; x++){ 669 676 for (size_t k = 0; k < 2; k++){ 670 clusters[x][y]->p_cmd_out[k][NORTH] 671 clusters[x][y+1]->p_cmd_in[k][SOUTH] 672 clusters[x][y]->p_cmd_in[k][NORTH] 673 clusters[x][y+1]->p_cmd_out[k][SOUTH] 674 clusters[x][y]->p_rsp_out[k][NORTH] 675 clusters[x][y+1]->p_rsp_in[k][SOUTH] 676 clusters[x][y]->p_rsp_in[k][NORTH] 677 clusters[x][y+1]->p_rsp_out[k][SOUTH] 677 clusters[x][y]->p_cmd_out[k][NORTH] (signal_dspin_v_cmd_inc[x][y][k]); 678 clusters[x][y+1]->p_cmd_in[k][SOUTH] (signal_dspin_v_cmd_inc[x][y][k]); 679 clusters[x][y]->p_cmd_in[k][NORTH] (signal_dspin_v_cmd_dec[x][y][k]); 680 clusters[x][y+1]->p_cmd_out[k][SOUTH] (signal_dspin_v_cmd_dec[x][y][k]); 681 clusters[x][y]->p_rsp_out[k][NORTH] (signal_dspin_v_rsp_inc[x][y][k]); 682 clusters[x][y+1]->p_rsp_in[k][SOUTH] (signal_dspin_v_rsp_inc[x][y][k]); 683 clusters[x][y]->p_rsp_in[k][NORTH] (signal_dspin_v_rsp_dec[x][y][k]); 684 clusters[x][y+1]->p_rsp_out[k][SOUTH] (signal_dspin_v_rsp_dec[x][y][k]); 678 685 } 679 686 } … … 687 694 for (size_t k = 0; k < 2; k++) 688 695 { 689 clusters[0][y]->p_cmd_in[k][WEST] 690 clusters[0][y]->p_cmd_out[k][WEST] 691 clusters[0][y]->p_rsp_in[k][WEST] 692 clusters[0][y]->p_rsp_out[k][WEST] 693 694 clusters[CLUSTER_X-1][y]->p_cmd_in[k][EAST] 695 clusters[CLUSTER_X-1][y]->p_cmd_out[k][EAST] 696 clusters[CLUSTER_X-1][y]->p_rsp_in[k][EAST] 697 clusters[CLUSTER_X-1][y]->p_rsp_out[k][EAST] 696 clusters[0][y]->p_cmd_in[k][WEST] (signal_dspin_false_cmd_in[0][y][k][WEST]); 697 clusters[0][y]->p_cmd_out[k][WEST] (signal_dspin_false_cmd_out[0][y][k][WEST]); 698 clusters[0][y]->p_rsp_in[k][WEST] (signal_dspin_false_rsp_in[0][y][k][WEST]); 699 clusters[0][y]->p_rsp_out[k][WEST] (signal_dspin_false_rsp_out[0][y][k][WEST]); 700 701 clusters[CLUSTER_X-1][y]->p_cmd_in[k][EAST] (signal_dspin_false_cmd_in[CLUSTER_X-1][y][k][EAST]); 702 clusters[CLUSTER_X-1][y]->p_cmd_out[k][EAST] (signal_dspin_false_cmd_out[CLUSTER_X-1][y][k][EAST]); 703 clusters[CLUSTER_X-1][y]->p_rsp_in[k][EAST] (signal_dspin_false_rsp_in[CLUSTER_X-1][y][k][EAST]); 704 clusters[CLUSTER_X-1][y]->p_rsp_out[k][EAST] (signal_dspin_false_rsp_out[CLUSTER_X-1][y][k][EAST]); 698 705 } 699 706 }
Note: See TracChangeset
for help on using the changeset viewer.