Skip to content

Commit

Permalink
fix ruche connection on the east row edge (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommydcjung authored Apr 16, 2021
1 parent 567a984 commit 3acb35f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
32 changes: 4 additions & 28 deletions testbenches/common/v/bsg_nonsynth_manycore_testbench.v
Original file line number Diff line number Diff line change
Expand Up @@ -672,40 +672,16 @@ module bsg_nonsynth_manycore_testbench
// RUCHE LINK TIEOFF (west)
for (genvar j = 0; j < num_pods_y_p; j++) begin
for (genvar k = 0; k < num_tiles_y_p; k++) begin
bsg_manycore_ruche_x_link_sif_tieoff #(
.addr_width_p(addr_width_p)
,.data_width_p(data_width_p)
,.x_cord_width_p(x_cord_width_p)
,.y_cord_width_p(y_cord_width_p)
,.ruche_stage_p(0)
,.ruche_factor_X_p(ruche_factor_X_p)
,.west_not_east_p(1)
) rw_tieoff (
.clk_i(clk_i)
,.reset_i(reset_r)
,.ruche_link_i(~ruche_link_lo[W][j][k]) // put it in the correct phase.
,.ruche_link_o(ruche_link_li[W][j][k])
);
// hard coded for ruche factor 3
assign ruche_link_li[W][j][k] = '0;
end
end

// RUCHE LINK TIEOFF (east)
for (genvar j = 0; j < num_pods_y_p; j++) begin
for (genvar k = 0; k < num_tiles_y_p; k++) begin
bsg_manycore_ruche_x_link_sif_tieoff #(
.addr_width_p(addr_width_p)
,.data_width_p(data_width_p)
,.x_cord_width_p(x_cord_width_p)
,.y_cord_width_p(y_cord_width_p)
,.ruche_stage_p(2)
,.ruche_factor_X_p(ruche_factor_X_p)
,.west_not_east_p(0)
) re_tieoff (
.clk_i(clk_i)
,.reset_i(reset_r)
,.ruche_link_i(ruche_link_lo[E][j][k])
,.ruche_link_o(ruche_link_li[E][j][k])
);
// hard coded for ruche factor 3
assign ruche_link_li[E][j][k] = '0;
end
end

Expand Down
8 changes: 4 additions & 4 deletions v/bsg_manycore_pod_ruche_row.v
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ module bsg_manycore_pod_ruche_row
assign ruche_link_li[0][W][y][2] = '1; // tieoff

// connect manycore ruche to east
assign ruche_link_li[num_pods_x_p-1][E][y][2] = ruche_link_i[E][y];
assign ruche_link_o[E][y] = ruche_link_lo[num_pods_x_p-1][E][y][2];
assign ruche_link_li[num_pods_x_p-1][E][y][0] = ruche_link_i[E][y];
assign ruche_link_o[E][y] = ruche_link_lo[num_pods_x_p-1][E][y][0];

// tieoff east manycore ruche
assign ruche_link_li[num_pods_x_p-1][E][y][0] = '1;
assign ruche_link_li[num_pods_x_p-1][E][y][1] = '0;
assign ruche_link_li[num_pods_x_p-1][E][y][1] = '1;
assign ruche_link_li[num_pods_x_p-1][E][y][2] = '0;
end

// connect wormhole ruche links to the outside
Expand Down

0 comments on commit 3acb35f

Please sign in to comment.