Changeset 465 for trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster
- Timestamp:
- Jul 23, 2013, 3:16:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.