Export trap signal from PicoRV32.

This is useful for handling crashes from hardware.
This commit is contained in:
Sergiusz Bazanski 2018-01-21 21:46:01 +00:00
parent b0be563012
commit 20ed23443b
1 changed files with 3 additions and 2 deletions

View File

@ -6,10 +6,11 @@ from litex.soc.interconnect import wishbone
class PicoRV32(Module): class PicoRV32(Module):
def __init__(self, platform, progaddr_reset): def __init__(self, platform, progaddr_reset, variant):
self.ibus = i = wishbone.Interface() self.ibus = i = wishbone.Interface()
self.dbus = d = wishbone.Interface() self.dbus = d = wishbone.Interface()
self.interrupt = Signal(32) self.interrupt = Signal(32)
self.trap = Signal()
# # # # # #
@ -51,7 +52,7 @@ class PicoRV32(Module):
i_resetn=~ResetSignal(), i_resetn=~ResetSignal(),
# trap # trap
o_trap=Signal(), # not used o_trap=self.trap,
# memory interface # memory interface
o_mem_valid=mem_valid, o_mem_valid=mem_valid,