From 425c8b8e7041e1e693709dc0d91222ebf9f3c5c3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 15 May 2012 13:13:40 +0200 Subject: [PATCH] asmicon/multiplexer: fix read tag delay --- milkymist/asmicon/multiplexer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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]), -- 2.30.2