Export trap signal from PicoRV32.
This is useful for handling crashes from hardware.
This commit is contained in:
parent
b0be563012
commit
20ed23443b
|
@ -6,10 +6,11 @@ from litex.soc.interconnect import wishbone
|
|||
|
||||
|
||||
class PicoRV32(Module):
|
||||
def __init__(self, platform, progaddr_reset):
|
||||
def __init__(self, platform, progaddr_reset, variant):
|
||||
self.ibus = i = wishbone.Interface()
|
||||
self.dbus = d = wishbone.Interface()
|
||||
self.interrupt = Signal(32)
|
||||
self.trap = Signal()
|
||||
|
||||
# # #
|
||||
|
||||
|
@ -51,7 +52,7 @@ class PicoRV32(Module):
|
|||
i_resetn=~ResetSignal(),
|
||||
|
||||
# trap
|
||||
o_trap=Signal(), # not used
|
||||
o_trap=self.trap,
|
||||
|
||||
# memory interface
|
||||
o_mem_valid=mem_valid,
|
||||
|
|
Loading…
Reference in New Issue