dvisampler/datacapture: fix tap counter reg
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 17 Mar 2013 16:36:49 +0000 (17:36 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 17 Mar 2013 16:36:49 +0000 (17:36 +0100)
milkymist/dvisampler/datacapture.py

index 4e37dc931a876fd7989354bc0548f8cfb51a53c4..787c15b1f995382c1a3134b7a52211b17886b9ee 100644 (file)
@@ -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,