dvisampler/charsync: fix found_control signal

This commit is contained in:
Sebastien Bourdeauducq 2013-03-24 00:43:22 +01:00
parent 80f3e97ca9
commit fb9a2788e8
1 changed files with 1 additions and 0 deletions

View 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),