From: Sebastien Bourdeauducq Date: Sun, 17 Mar 2013 16:36:49 +0000 (+0100) Subject: dvisampler/datacapture: fix tap counter reg X-Git-Tag: 24jan2021_ls180~3024 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=621526fb7d3e620896aa335d21c558e9f9cc4be6;p=litex.git dvisampler/datacapture: fix tap counter reg --- 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,