aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--picorv32.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/picorv32.v b/picorv32.v
index 616fc85..ccef947 100644
--- a/picorv32.v
+++ b/picorv32.v
@@ -231,7 +231,7 @@ module picorv32 #(
0: begin
mem_addr <= mem_la_addr;
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
mem_valid <= 1;
mem_instr <= mem_do_prefetch || mem_do_rinst;