From 649144ba5dc93a95e62d2fa85846e3688982a578 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 22 Dec 2015 11:17:11 +0100 Subject: Keep mem_wstrb low even when mem_valid is low anyways --- picorv32.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'picorv32.v') 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; -- cgit From d2e20edaab27d6891294dd3c2aadf871c874d431 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 22 Dec 2015 11:17:24 +0100 Subject: Cleanup regarding pcpi_timeout --- picorv32.v | 1 + 1 file changed, 1 insertion(+) (limited to 'picorv32.v') diff --git a/picorv32.v b/picorv32.v index ccef947..fd1740d 100644 --- a/picorv32.v +++ b/picorv32.v @@ -661,6 +661,7 @@ module picorv32 #( latched_is_lh <= 0; latched_is_lb <= 0; pcpi_valid <= 0; + pcpi_timeout <= 0; irq_active <= 0; irq_mask <= ~0; next_irq_pending = 0; -- cgit