From: Luke Kenneth Casson Leighton Date: Wed, 3 Mar 2021 14:28:53 +0000 (+0000) Subject: cur_state is a global, does not have to be passed as a parameter in TestIssuer X-Git-Tag: convert-csv-opcode-to-binary~128 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ee4ccf3ccda84df51458a5cfcc4c6f1bcd85ded;p=soc.git cur_state is a global, does not have to be passed as a parameter in TestIssuer --- diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index 8f8e7cfe..3fd8f499 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -148,7 +148,7 @@ class TestIssuerInternal(Elaboratable): self.state_nia.wen.name = 'state_nia_wen' def fetch_fsm(self, m, core, dbg, pc, svstate, pc_changed, insn_done, - core_rst, cur_state, + core_rst, fetch_pc_ready_o, fetch_pc_valid_i, fetch_insn_valid_o, fetch_insn_ready_i): """fetch FSM @@ -160,6 +160,7 @@ class TestIssuerInternal(Elaboratable): sync = m.d.sync pdecode2 = self.pdecode2 svp64 = self.svp64 + cur_state = self.cur_state # latches copy of raw fetched instruction fetch_insn_o = Signal(32, reset_less=True) @@ -259,7 +260,7 @@ class TestIssuerInternal(Elaboratable): comb += self.state_w_pc.wen.eq(1<