projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d87e1
)
top: connect dvisampler DMA IRQs
author
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Wed, 8 May 2013 20:31:42 +0000
(22:31 +0200)
committer
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Wed, 8 May 2013 20:31:42 +0000
(22:31 +0200)
top.py
patch
|
blob
|
history
diff --git
a/top.py
b/top.py
index f3ed0b94d3c8f5b86035e8a00a6bb44d37849649..604cd6fefd0435129dc1544423e21cde236da96c 100644
(file)
--- a/
top.py
+++ b/
top.py
@@
-83,6
+83,8
@@
class SoC(Module):
"uart": 0,
"timer0": 1,
"minimac": 2,
+ "dvisampler0": 3,
+ "dvisampler1": 4,
}
def __init__(self, platform):
@@
-153,7
+155,8
@@
class SoC(Module):
# Interrupts
#
for k, v in sorted(self.interrupt_map.items(), key=itemgetter(1)):
- self.comb += self.cpu.interrupt[v].eq(getattr(self, k).ev.irq)
+ if hasattr(self, k):
+ self.comb += self.cpu.interrupt[v].eq(getattr(self, k).ev.irq)
#
# Clocking