dfii: adapt to new Record API

This commit is contained in:
Sebastien Bourdeauducq 2013-04-02 00:15:42 +02:00
parent 4f4f260e76
commit 3be20f6ae4
1 changed files with 5 additions and 3 deletions

View File

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