From 3be20f6ae4eabf0867f6606d36ee3478ed79b221 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 2 Apr 2013 00:15:42 +0200 Subject: [PATCH] dfii: adapt to new Record API --- milkymist/dfii/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/milkymist/dfii/__init__.py b/milkymist/dfii/__init__.py index f82aec621..2db5d56ef 100644 --- a/milkymist/dfii/__init__.py +++ b/milkymist/dfii/__init__.py @@ -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]