From: Michael Neuling Date: Mon, 8 Feb 2021 09:17:48 +0000 (+1100) Subject: Fix DAR/DSISR reading before they are written X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c21587c4d0dcd6fdacf742fdd5454823919831e;p=microwatt.git Fix DAR/DSISR reading before they are written If the DAR and DSISR are read before they are written, we assert with: register_file.vhdl:55:25:@60195ns:(report note): Writing GPR 09 00000000XXXXXXXX register_file.vhdl:61:17:@60195ns:(assertion failure): Assertion violation This initialises DAR/DSISR to avoid this. Signed-off-by: Michael Neuling --- diff --git a/loadstore1.vhdl b/loadstore1.vhdl index ee4507b..3328617 100644 --- a/loadstore1.vhdl +++ b/loadstore1.vhdl @@ -275,6 +275,8 @@ begin r2.wait_dc <= '0'; r2.wait_mmu <= '0'; r2.one_cycle <= '0'; + r3.dar <= (others => '0'); + r3.dsisr <= (others => '0'); r3.state <= IDLE; r3.write_enable <= '0'; r3.interrupt <= '0';