Changeset 465 for trunk/platforms/tsar_generic_xbar
- Timestamp:
- Jul 23, 2013, 3:16:33 PM (11 years ago)
- Location:
- trunk/platforms/tsar_generic_xbar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/top.cpp
r464 r465 681 681 for (size_t y = 0; y < YMAX; y++){ 682 682 for (size_t k = 0; k < 2; k++){ 683 clusters[x][y]->p_cmd_out[ k][EAST] (signal_dspin_h_cmd_inc[x][y][k]);684 clusters[x+1][y]->p_cmd_in[ k][WEST] (signal_dspin_h_cmd_inc[x][y][k]);685 clusters[x][y]->p_cmd_in[ k][EAST] (signal_dspin_h_cmd_dec[x][y][k]);686 clusters[x+1][y]->p_cmd_out[ k][WEST] (signal_dspin_h_cmd_dec[x][y][k]);687 clusters[x][y]->p_rsp_out[ k][EAST] (signal_dspin_h_rsp_inc[x][y][k]);688 clusters[x+1][y]->p_rsp_in[ k][WEST] (signal_dspin_h_rsp_inc[x][y][k]);689 clusters[x][y]->p_rsp_in[ k][EAST] (signal_dspin_h_rsp_dec[x][y][k]);690 clusters[x+1][y]->p_rsp_out[ k][WEST] (signal_dspin_h_rsp_dec[x][y][k]);683 clusters[x][y]->p_cmd_out[EAST][k] (signal_dspin_h_cmd_inc[x][y][k]); 684 clusters[x+1][y]->p_cmd_in[WEST][k] (signal_dspin_h_cmd_inc[x][y][k]); 685 clusters[x][y]->p_cmd_in[EAST][k] (signal_dspin_h_cmd_dec[x][y][k]); 686 clusters[x+1][y]->p_cmd_out[WEST][k] (signal_dspin_h_cmd_dec[x][y][k]); 687 clusters[x][y]->p_rsp_out[EAST][k] (signal_dspin_h_rsp_inc[x][y][k]); 688 clusters[x+1][y]->p_rsp_in[WEST][k] (signal_dspin_h_rsp_inc[x][y][k]); 689 clusters[x][y]->p_rsp_in[EAST][k] (signal_dspin_h_rsp_dec[x][y][k]); 690 clusters[x+1][y]->p_rsp_out[WEST][k] (signal_dspin_h_rsp_dec[x][y][k]); 691 691 } 692 692 } … … 700 700 for (size_t x = 0; x < XMAX; x++){ 701 701 for (size_t k = 0; k < 2; k++){ 702 clusters[x][y]->p_cmd_out[ k][NORTH] (signal_dspin_v_cmd_inc[x][y][k]);703 clusters[x][y+1]->p_cmd_in[ k][SOUTH] (signal_dspin_v_cmd_inc[x][y][k]);704 clusters[x][y]->p_cmd_in[ k][NORTH] (signal_dspin_v_cmd_dec[x][y][k]);705 clusters[x][y+1]->p_cmd_out[ k][SOUTH] (signal_dspin_v_cmd_dec[x][y][k]);706 clusters[x][y]->p_rsp_out[ k][NORTH] (signal_dspin_v_rsp_inc[x][y][k]);707 clusters[x][y+1]->p_rsp_in[ k][SOUTH] (signal_dspin_v_rsp_inc[x][y][k]);708 clusters[x][y]->p_rsp_in[ k][NORTH] (signal_dspin_v_rsp_dec[x][y][k]);709 clusters[x][y+1]->p_rsp_out[ k][SOUTH] (signal_dspin_v_rsp_dec[x][y][k]);702 clusters[x][y]->p_cmd_out[NORTH][k] (signal_dspin_v_cmd_inc[x][y][k]); 703 clusters[x][y+1]->p_cmd_in[SOUTH][k] (signal_dspin_v_cmd_inc[x][y][k]); 704 clusters[x][y]->p_cmd_in[NORTH][k] (signal_dspin_v_cmd_dec[x][y][k]); 705 clusters[x][y+1]->p_cmd_out[SOUTH][k] (signal_dspin_v_cmd_dec[x][y][k]); 706 clusters[x][y]->p_rsp_out[NORTH][k] (signal_dspin_v_rsp_inc[x][y][k]); 707 clusters[x][y+1]->p_rsp_in[SOUTH][k] (signal_dspin_v_rsp_inc[x][y][k]); 708 clusters[x][y]->p_rsp_in[NORTH][k] (signal_dspin_v_rsp_dec[x][y][k]); 709 clusters[x][y+1]->p_rsp_out[SOUTH][k] (signal_dspin_v_rsp_dec[x][y][k]); 710 710 } 711 711 } … … 719 719 for (size_t k = 0; k < 2; k++) 720 720 { 721 clusters[0][y]->p_cmd_in[ k][WEST] (signal_dspin_false_cmd_in[0][y][k][WEST]);722 clusters[0][y]->p_cmd_out[ k][WEST] (signal_dspin_false_cmd_out[0][y][k][WEST]);723 clusters[0][y]->p_rsp_in[ k][WEST] (signal_dspin_false_rsp_in[0][y][k][WEST]);724 clusters[0][y]->p_rsp_out[ k][WEST] (signal_dspin_false_rsp_out[0][y][k][WEST]);725 726 clusters[XMAX-1][y]->p_cmd_in[ k][EAST] (signal_dspin_false_cmd_in[XMAX-1][y][k][EAST]);727 clusters[XMAX-1][y]->p_cmd_out[ k][EAST] (signal_dspin_false_cmd_out[XMAX-1][y][k][EAST]);728 clusters[XMAX-1][y]->p_rsp_in[ k][EAST] (signal_dspin_false_rsp_in[XMAX-1][y][k][EAST]);729 clusters[XMAX-1][y]->p_rsp_out[ k][EAST] (signal_dspin_false_rsp_out[XMAX-1][y][k][EAST]);721 clusters[0][y]->p_cmd_in[WEST][k] (signal_dspin_false_cmd_in[0][y][k][WEST]); 722 clusters[0][y]->p_cmd_out[WEST][k] (signal_dspin_false_cmd_out[0][y][k][WEST]); 723 clusters[0][y]->p_rsp_in[WEST][k] (signal_dspin_false_rsp_in[0][y][k][WEST]); 724 clusters[0][y]->p_rsp_out[WEST][k] (signal_dspin_false_rsp_out[0][y][k][WEST]); 725 726 clusters[XMAX-1][y]->p_cmd_in[EAST][k] (signal_dspin_false_cmd_in[XMAX-1][y][k][EAST]); 727 clusters[XMAX-1][y]->p_cmd_out[EAST][k] (signal_dspin_false_cmd_out[XMAX-1][y][k][EAST]); 728 clusters[XMAX-1][y]->p_rsp_in[EAST][k] (signal_dspin_false_rsp_in[XMAX-1][y][k][EAST]); 729 clusters[XMAX-1][y]->p_rsp_out[EAST][k] (signal_dspin_false_rsp_out[XMAX-1][y][k][EAST]); 730 730 } 731 731 } … … 736 736 for (size_t k = 0; k < 2; k++) 737 737 { 738 clusters[x][0]->p_cmd_in[ k][SOUTH] (signal_dspin_false_cmd_in[x][0][k][SOUTH]);739 clusters[x][0]->p_cmd_out[ k][SOUTH] (signal_dspin_false_cmd_out[x][0][k][SOUTH]);740 clusters[x][0]->p_rsp_in[ k][SOUTH] (signal_dspin_false_rsp_in[x][0][k][SOUTH]);741 clusters[x][0]->p_rsp_out[ k][SOUTH] (signal_dspin_false_rsp_out[x][0][k][SOUTH]);742 743 clusters[x][YMAX-1]->p_cmd_in[ k][NORTH] (signal_dspin_false_cmd_in[x][YMAX-1][k][NORTH]);744 clusters[x][YMAX-1]->p_cmd_out[ k][NORTH] (signal_dspin_false_cmd_out[x][YMAX-1][k][NORTH]);745 clusters[x][YMAX-1]->p_rsp_in[ k][NORTH] (signal_dspin_false_rsp_in[x][YMAX-1][k][NORTH]);746 clusters[x][YMAX-1]->p_rsp_out[ k][NORTH] (signal_dspin_false_rsp_out[x][YMAX-1][k][NORTH]);738 clusters[x][0]->p_cmd_in[SOUTH][k] (signal_dspin_false_cmd_in[x][0][k][SOUTH]); 739 clusters[x][0]->p_cmd_out[SOUTH][k] (signal_dspin_false_cmd_out[x][0][k][SOUTH]); 740 clusters[x][0]->p_rsp_in[SOUTH][k] (signal_dspin_false_rsp_in[x][0][k][SOUTH]); 741 clusters[x][0]->p_rsp_out[SOUTH][k] (signal_dspin_false_rsp_out[x][0][k][SOUTH]); 742 743 clusters[x][YMAX-1]->p_cmd_in[NORTH][k] (signal_dspin_false_cmd_in[x][YMAX-1][k][NORTH]); 744 clusters[x][YMAX-1]->p_cmd_out[NORTH][k] (signal_dspin_false_cmd_out[x][YMAX-1][k][NORTH]); 745 clusters[x][YMAX-1]->p_rsp_in[NORTH][k] (signal_dspin_false_rsp_in[x][YMAX-1][k][NORTH]); 746 clusters[x][YMAX-1]->p_rsp_out[NORTH][k] (signal_dspin_false_rsp_out[x][YMAX-1][k][NORTH]); 747 747 } 748 748 } -
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp
r435 r465 85 85 { 86 86 // Vectors of ports definition 87 p_cmd_in = alloc_elems<DspinInput<dspin_cmd_width> >("p_cmd_in", 2, 4);88 p_cmd_out = alloc_elems<DspinOutput<dspin_cmd_width> >("p_cmd_out", 2, 4);89 p_rsp_in = alloc_elems<DspinInput<dspin_rsp_width> >("p_rsp_in", 2, 4);90 p_rsp_out = alloc_elems<DspinOutput<dspin_rsp_width> >("p_rsp_out", 2, 4);87 p_cmd_in = alloc_elems<DspinInput<dspin_cmd_width> >("p_cmd_in", 4, 2); 88 p_cmd_out = alloc_elems<DspinOutput<dspin_cmd_width> >("p_cmd_out", 4, 2); 89 p_rsp_in = alloc_elems<DspinInput<dspin_rsp_width> >("p_rsp_in", 4, 2); 90 p_rsp_out = alloc_elems<DspinOutput<dspin_rsp_width> >("p_rsp_out", 4, 2); 91 91 92 92 ///////////////////////////////////////////////////////////////////////////// … … 273 273 x_id,y_id, // coordinate in the mesh 274 274 x_width, y_width, // x & y fields width 275 2, // nb virtual channels 275 276 4,4); // input & output fifo depths 276 277 … … 280 281 x_id,y_id, // coordinates in mesh 281 282 x_width, y_width, // x & y fields width 283 2, // nb virtual channels 282 284 4,4); // input & output fifo depths 283 285 … … 380 382 router_rsp->p_clk (this->p_clk); 381 383 router_rsp->p_resetn (this->p_resetn); 382 for (int x = 0; x < 2; x++) 383 { 384 for(int y = 0; y < 4; y++) 384 385 for(int i = 0; i < 4; i++) 386 { 387 for (int k = 0; k < 2; k++) 385 388 { 386 router_cmd->p_out[ x][y] (this->p_cmd_out[x][y]);387 router_cmd->p_in[ x][y] (this->p_cmd_in[x][y]);388 router_rsp->p_out[ x][y] (this->p_rsp_out[x][y]);389 router_rsp->p_in[ x][y] (this->p_rsp_in[x][y]);389 router_cmd->p_out[i][k] (this->p_cmd_out[i][k]); 390 router_cmd->p_in[i][k] (this->p_cmd_in[i][k]); 391 router_rsp->p_out[i][k] (this->p_rsp_out[i][k]); 392 router_rsp->p_in[i][k] (this->p_rsp_in[i][k]); 390 393 } 391 394 } 392 395 393 router_cmd->p_out[ 0][4] (signal_dspin_cmd_g2l_d);394 router_cmd->p_out[ 1][4] (signal_dspin_m2p_g2l_c);395 router_cmd->p_in[ 0][4] (signal_dspin_cmd_l2g_d);396 router_cmd->p_in[ 1][4] (signal_dspin_m2p_l2g_c);397 398 router_rsp->p_out[ 0][4] (signal_dspin_rsp_g2l_d);399 router_rsp->p_out[ 1][4] (signal_dspin_p2m_g2l_c);400 router_rsp->p_in[ 0][4] (signal_dspin_rsp_l2g_d);401 router_rsp->p_in[ 1][4] (signal_dspin_p2m_l2g_c);396 router_cmd->p_out[4][0] (signal_dspin_cmd_g2l_d); 397 router_cmd->p_out[4][1] (signal_dspin_m2p_g2l_c); 398 router_cmd->p_in[4][0] (signal_dspin_cmd_l2g_d); 399 router_cmd->p_in[4][1] (signal_dspin_m2p_l2g_c); 400 401 router_rsp->p_out[4][0] (signal_dspin_rsp_g2l_d); 402 router_rsp->p_out[4][1] (signal_dspin_p2m_g2l_c); 403 router_rsp->p_in[4][0] (signal_dspin_rsp_l2g_d); 404 router_rsp->p_in[4][1] (signal_dspin_p2m_l2g_c); 402 405 403 406 std::cout << " - CMD & RSP routers connected" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.