Skip to content

Commit

Permalink
dfii: adapt to new Record API
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Apr 1, 2013
1 parent 4f4f260 commit 3be20f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions milkymist/dfii/__init__.py
Expand Up @@ -48,7 +48,9 @@ def __init__(self, a, ba, d, nphases=1):

###

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]

0 comments on commit 3be20f6

Please sign in to comment.