From: Luke Kenneth Casson Leighton Date: Sun, 6 Sep 2020 18:46:41 +0000 (+0100) Subject: copy dec SPR into decoder cur_state X-Git-Tag: semi_working_ecp5~164 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13082c2115ecaab39d58d59147ef1e94de543fe7;p=soc.git copy dec SPR into decoder cur_state --- 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