diff --git a/milkymist/asmicon/multiplexer.py b/milkymist/asmicon/multiplexer.py index 6b459262a..d6f3f4aa4 100644 --- a/milkymist/asmicon/multiplexer.py +++ b/milkymist/asmicon/multiplexer.py @@ -120,9 +120,10 @@ class _Datapath: ) ] - rd_valid_d = [Signal() for i in range(self.timing_settings.rd_delay)] - rd_tag_d = [Signal(BV(tagbits)) for i in range(self.timing_settings.rd_delay)] - for i in range(self.timing_settings.rd_delay): + rd_delay = self.timing_settings.rd_delay + 1 + rd_valid_d = [Signal() for i in range(rd_delay)] + rd_tag_d = [Signal(BV(tagbits)) for i in range(rd_delay)] + for i in range(rd_delay): if i: sync += [ rd_valid_d[i].eq(rd_valid_d[i-1]),