From: Sebastien Bourdeauducq Date: Tue, 15 May 2012 11:13:40 +0000 (+0200) Subject: asmicon/multiplexer: fix read tag delay X-Git-Tag: 24jan2021_ls180~3194 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=425c8b8e7041e1e693709dc0d91222ebf9f3c5c3;p=litex.git asmicon/multiplexer: fix read tag delay --- diff --git a/milkymist/asmicon/multiplexer.py b/milkymist/asmicon/multiplexer.py index 6b459262..d6f3f4aa 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]),