dvisampler/charsync: fix found_control signal
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 23 Mar 2013 23:43:22 +0000 (00:43 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 23 Mar 2013 23:43:22 +0000 (00:43 +0100)
milkymist/dvisampler/charsync.py

index 464a40b8f14aed6f9ed3d79f8d491e784cc64969..f91ff3d5c7999771f9f64e7236c4a7092bdaffb5 100644 (file)
@@ -23,6 +23,7 @@ class CharSync(Module, AutoReg):
 
                found_control = Signal()
                control_position = Signal(max=10)
+               self.sync.pix += found_control.eq(0)
                for i in range(10):
                        self.sync.pix += If(optree("|", [raw[i:i+10] == t for t in control_tokens]),
                                found_control.eq(1),