Skip to content

Commit

Permalink
fix in hope pipeline likes this more instead of shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
FRoith committed Oct 30, 2024
1 parent 768be5e commit a8ef151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wb_bram.v
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module wb_bram #
// (* RAM_STYLE="BLOCK" *)
reg [DATA_WIDTH-1:0] mem[0:(2**VALID_ADDR_WIDTH)-1];

wire [VALID_ADDR_WIDTH-1:0] adr_i_valid = {adr_i >> (ADDR_WIDTH - VALID_ADDR_WIDTH)}[VALID_ADDR_WIDTH-1:0];
wire [VALID_ADDR_WIDTH-1:0] adr_i_valid = adr_i[ADDR_WIDTH-1:(ADDR_WIDTH - VALID_ADDR_WIDTH)];

assign dat_o = dat_o_reg;
assign ack_o = ack_o_reg;
Expand Down

0 comments on commit a8ef151

Please sign in to comment.