projects
/
gram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8065c99
)
Remove setaddr for submodule instanciation
author
Jean THOMAS
<git0@pub.jeanthomas.me>
Mon, 8 Jun 2020 09:16:04 +0000
(11:16 +0200)
committer
Jean THOMAS
<git0@pub.jeanthomas.me>
Mon, 8 Jun 2020 09:16:04 +0000
(11:16 +0200)
gram/dfii.py
patch
|
blob
|
history
diff --git
a/gram/dfii.py
b/gram/dfii.py
index 3436e33a92c02b3509238ce3fde421f20b0ea214..45abdb2f73ec2d25fd2c510fd7d787fbfcab5a8e 100644
(file)
--- a/
gram/dfii.py
+++ b/
gram/dfii.py
@@
-75,7
+75,7
@@
class DFIInjector(Peripheral, Elaboratable):
m = Module()
for n, phase in enumerate(self._inti.phases):
-
setattr(m.submodules, "pi" + str(n), PhaseInjector(phase)
)
+
m.submodules += PhaseInjector(phase
)
with m.If(self._control.r_data[0]):
m.d.comb += self.slave.connect(self.master)