Skip to content

Commit

Permalink
Adding east_not_west to cid
Browse files Browse the repository at this point in the history
  • Loading branch information
dpetrisko committed Feb 2, 2022
1 parent 7dbbd51 commit d348fac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testbenches/common/v/spmd_testbench.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module spmd_testbench

parameter wh_flit_width_p = vcache_dma_data_width_p;
parameter wh_ruche_factor_p = 2;
parameter wh_cid_width_p = `BSG_SAFE_CLOG2(2*wh_ruche_factor_p); // no concentration in this testbench; cid is ignored.
parameter wh_cid_width_p = `BSG_SAFE_CLOG2(2*wh_ruche_factor_p+1); // no concentration in this testbench; cid is ignored.
parameter wh_len_width_p = `BSG_SAFE_CLOG2(1+(vcache_block_size_in_words_p*vcache_data_width_p/vcache_dma_data_width_p)); // header + addr + data
parameter wh_cord_width_p = x_cord_width_p;

Expand Down
3 changes: 2 additions & 1 deletion v/bsg_manycore_tile_vcache.v
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ module bsg_manycore_tile_vcache
// concentrator id
// lower bits come from lower bits of global_x
// upper bits come from whether its north or south vc.
,.my_wh_cid_i({~global_y_r[y_subcord_width_lp-1], global_x_r[0+:lg_wh_ruche_factor_lp]})
// top bit is whether its eastbound or westbound
,.my_wh_cid_i({wh_dest_east_not_west_lo, ~global_y_r[y_subcord_width_lp-1], global_x_r[0+:lg_wh_ruche_factor_lp]})
);


Expand Down

0 comments on commit d348fac

Please sign in to comment.