mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
dvisampler/charsync: fix found_control signal
This commit is contained in:
parent
80f3e97ca9
commit
fb9a2788e8
1 changed files with 1 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue