From: Luke Kenneth Casson Leighton Date: Tue, 4 Aug 2020 14:15:52 +0000 (+0100) Subject: cycle through INT regs, read and debug in litex sim X-Git-Tag: semi_working_ecp5~452 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=780f2980e8ec2687fb96e0dde88e3cf977118bf5;p=soc.git cycle through INT regs, read and debug in litex sim --- diff --git a/src/soc/litex/florent/sim.py b/src/soc/litex/florent/sim.py index 54db6113..7d883b91 100755 --- a/src/soc/litex/florent/sim.py +++ b/src/soc/litex/florent/sim.py @@ -104,9 +104,17 @@ class LibreSoCSim(SoCCore): # debug messages out self.sync += If(dbg_msg, - (Display("[%06x] dbg: %1x, %016x", uptime, dbg_addr, dbg_dout), - dbg_msg.eq(0) - ) + (If(dbg_addr == 0b10, # PC + Display("pc : %016x", dbg_dout), + ), + If(dbg_addr == 0b11, # PC + Display(" msr: %016x", dbg_dout), + ), + If(dbg_addr == 0b101, # GPR + Display(" gpr: %016x", dbg_dout), + ), + dbg_msg.eq(0) + ) ) # kick off a "stop" @@ -119,10 +127,18 @@ class LibreSoCSim(SoCCore): ) # loop every 1<