From 79e5f24a652708b768151845fe63174d6ae975c7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 28 Nov 2012 22:49:22 +0100 Subject: [PATCH] Workaround for zero-delay loop simulation problem with Icarus Verilog. TODO: clarify and revert this commit. --- milkymist/asmicon/multiplexer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/milkymist/asmicon/multiplexer.py b/milkymist/asmicon/multiplexer.py index 6ca619bb..ac4b2265 100644 --- a/milkymist/asmicon/multiplexer.py +++ b/milkymist/asmicon/multiplexer.py @@ -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() + \ -- 2.30.2