soc/cores/cpu/eos_s3: add interrupt support
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
This commit is contained in:
parent
f679992f8d
commit
1ce2073694
|
@ -36,6 +36,7 @@ class EOS_S3(CPU):
|
|||
def __init__(self, platform, variant):
|
||||
self.platform = platform
|
||||
self.reset = Signal()
|
||||
self.interrupt = Signal(4)
|
||||
self.periph_buses = [] # Peripheral buses (Connected to main SoC's bus).
|
||||
self.memory_buses = [] # Memory buses (Connected directly to LiteDRAM).
|
||||
|
||||
|
@ -72,7 +73,7 @@ class EOS_S3(CPU):
|
|||
#SDMA_Done(),
|
||||
#SDMA_Active(),
|
||||
# FB Interrupts
|
||||
#FB_msg_out(4'b0000),
|
||||
i_FB_msg_out = self.interrupt,
|
||||
#FB_Int_Clr(8'h0),
|
||||
#FB_Start(),
|
||||
#FB_Busy= 0,
|
||||
|
|
|
@ -926,6 +926,11 @@ class SoC(Module):
|
|||
# Add Bus Masters/CSR/IRQs.
|
||||
if isinstance(self.cpu, cpu.EOS_S3):
|
||||
self.bus.add_master(master=self.cpu.wb)
|
||||
if hasattr(self.cpu, "interrupt"):
|
||||
self.irq.enable()
|
||||
for name, loc in self.cpu.interrupts.items():
|
||||
self.irq.add(name, loc)
|
||||
self.add_config("CPU_HAS_INTERRUPT")
|
||||
if not isinstance(self.cpu, (cpu.CPUNone, cpu.Zynq7000, cpu.EOS_S3)):
|
||||
if reset_address is None:
|
||||
reset_address = self.mem_map["rom"]
|
||||
|
|
Loading…
Reference in New Issue