From 621526fb7d3e620896aa335d21c558e9f9cc4be6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 17 Mar 2013 17:36:49 +0100 Subject: [PATCH] dvisampler/datacapture: fix tap counter reg --- milkymist/dvisampler/datacapture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milkymist/dvisampler/datacapture.py b/milkymist/dvisampler/datacapture.py index 4e37dc93..787c15b1 100644 --- a/milkymist/dvisampler/datacapture.py +++ b/milkymist/dvisampler/datacapture.py @@ -119,7 +119,7 @@ class DataCapture(Module, AutoReg): if debug: self.comb += delay_rst.eq(self.delay_rst | self._r_delay_rst.re) current_tap = self._r_current_tap.field.w - If(delay_rst, + self.sync += If(delay_rst, current_tap.eq(0) ).Elif(delay_ce, If(delay_inc, -- 2.30.2