dfii: adapt to new Record API
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 1 Apr 2013 22:15:42 +0000 (00:15 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 1 Apr 2013 22:15:42 +0000 (00:15 +0200)
milkymist/dfii/__init__.py

index f82aec621ce230ed35fe044d6ba4d3262943c11e..2db5d56eff50bc2b35b65ce5efed551e52c59391 100644 (file)
@@ -48,7 +48,9 @@ class DFIInjector(Module, AutoCSR):
        
                ###
        
-               connect_inti = dfi.interconnect_stmts(inti, self.master)
-               connect_slave = dfi.interconnect_stmts(self.slave, self.master)
-               self.comb += If(self._control.storage[0], *connect_slave).Else(*connect_inti)
+               self.comb += If(self._control.storage[0],
+                               self.slave.connect(self.master)
+                       ).Else(
+                               inti.connect(self.master)
+                       )
                self.comb += [phase.cke.eq(self._control.storage[1]) for phase in inti.phases]