From: Luke Kenneth Casson Leighton Date: Tue, 4 Aug 2020 15:38:43 +0000 (+0100) Subject: whoops must output NIA not PC to debug DMI query in test_issuer X-Git-Tag: semi_working_ecp5~450 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecf6058c73d2c813f430e7c09fcc21dc4e9bc396;p=soc.git whoops must output NIA not PC to debug DMI query in test_issuer --- diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index 9bdd2b92..910598ea 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -94,7 +94,6 @@ class TestIssuer(Elaboratable): comb += core_sync.clk.eq(ClockSignal()) # XXX TODO: power-on reset delay (later) #comb += core.core_reset_i.eq(delay != 0 | dbg.core_rst_o) - comb += core.core_reset_i.eq(dbg.core_rst_o) # busy/halted signals from core comb += self.busy_o.eq(core.busy_o) @@ -123,11 +122,12 @@ class TestIssuer(Elaboratable): comb += nia.eq(cur_state.pc + 4) # connect up debug signals - comb += core.core_stopped_i.eq(dbg.core_stop_o) - # TODO comb += core.reset_i.eq(dbg.core_rst_o) # TODO comb += core.icache_rst_i.eq(dbg.icache_rst_o) + comb += core.core_stopped_i.eq(dbg.core_stop_o) + comb += core.core_reset_i.eq(dbg.core_rst_o) comb += dbg.terminate_i.eq(core.core_terminate_o) - comb += dbg.state.eq(cur_state) + comb += dbg.state.pc.eq(nia) + comb += dbg.state.msr.eq(cur_state.msr) # temporaries core_busy_o = core.busy_o # core is busy