top: connect dvisampler DMA IRQs
This commit is contained in:
parent
b3d87e1c79
commit
66b4bae7c8
3
top.py
3
top.py
|
@ -83,6 +83,8 @@ class SoC(Module):
|
||||||
"uart": 0,
|
"uart": 0,
|
||||||
"timer0": 1,
|
"timer0": 1,
|
||||||
"minimac": 2,
|
"minimac": 2,
|
||||||
|
"dvisampler0": 3,
|
||||||
|
"dvisampler1": 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, platform):
|
def __init__(self, platform):
|
||||||
|
@ -153,6 +155,7 @@ class SoC(Module):
|
||||||
# Interrupts
|
# Interrupts
|
||||||
#
|
#
|
||||||
for k, v in sorted(self.interrupt_map.items(), key=itemgetter(1)):
|
for k, v in sorted(self.interrupt_map.items(), key=itemgetter(1)):
|
||||||
|
if hasattr(self, k):
|
||||||
self.comb += self.cpu.interrupt[v].eq(getattr(self, k).ev.irq)
|
self.comb += self.cpu.interrupt[v].eq(getattr(self, k).ev.irq)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue