Workaround for zero-delay loop simulation problem with Icarus Verilog. TODO: clarify and revert this commit.

This commit is contained in:
Sebastien Bourdeauducq 2012-11-28 22:49:22 +01:00
parent 0620e75cb8
commit 79e5f24a65

View file

@ -251,9 +251,10 @@ class Multiplexer:
)
fsm.act(fsm.REFRESH,
steerer.sel[0].eq(STEER_REFRESH),
self.refresher.ack.eq(1),
If(~self.refresher.req, fsm.next_state(fsm.READ))
)
# FIXME: workaround for zero-delay loop simulation problem with Icarus Verilog
comb.append(self.refresher.ack.eq(fsm._state == fsm.REFRESH))
return Fragment(comb, sync) + \
choose_cmd.get_fragment() + \