Keep mem_wstrb low even when mem_valid is low anyways

This commit is contained in:
Clifford Wolf 2015-12-22 11:17:11 +01:00
parent 6e6aeaeab6
commit 649144ba5d
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ module picorv32 #(
0: begin 0: begin
mem_addr <= mem_la_addr; mem_addr <= mem_la_addr;
mem_wdata <= mem_la_wdata; mem_wdata <= mem_la_wdata;
mem_wstrb <= mem_la_wstrb; mem_wstrb <= mem_la_wstrb & {4{mem_la_write}};
if (mem_do_prefetch || mem_do_rinst || mem_do_rdata) begin if (mem_do_prefetch || mem_do_rinst || mem_do_rdata) begin
mem_valid <= 1; mem_valid <= 1;
mem_instr <= mem_do_prefetch || mem_do_rinst; mem_instr <= mem_do_prefetch || mem_do_rinst;