From 13082c2115ecaab39d58d59147ef1e94de543fe7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 6 Sep 2020 19:46:41 +0100 Subject: [PATCH] copy dec SPR into decoder cur_state --- src/soc/simple/issuer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index 0bba6554..1f4e798e 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -320,11 +320,11 @@ class TestIssuer(Elaboratable): comb += d_xer.ack.eq(1) # DEC and TB inc/dec FSM - self.tb_dec_fsm(m) + self.tb_dec_fsm(m, cur_state.dec) return m - def tb_dec_fsm(self, m): + def tb_dec_fsm(self, m, spr_dec): """tb_dec_fsm this is a FSM for updating either dec or tb. it runs alternately @@ -356,6 +356,7 @@ class TestIssuer(Elaboratable): comb += fast_w_dectb.addr.eq(FastRegs.DEC) comb += fast_w_dectb.wen.eq(1) comb += fast_w_dectb.data_i.eq(new_dec) + sync += spr_dec.eq(new_dec) # copy into cur_state for decoder m.next = "TB_READ" # initiates read of current TB -- 2.30.2