From: Sebastien Bourdeauducq Date: Sat, 23 Mar 2013 23:44:50 +0000 (+0100) Subject: dvisampler/charsync: report position X-Git-Tag: 24jan2021_ls180~3004 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee5bfd4d3d840c1ba7bcabcf7bb1896a566ac592;p=litex.git dvisampler/charsync: report position --- diff --git a/milkymist/dvisampler/charsync.py b/milkymist/dvisampler/charsync.py index f91ff3d5..41268f94 100644 --- a/milkymist/dvisampler/charsync.py +++ b/milkymist/dvisampler/charsync.py @@ -13,6 +13,7 @@ class CharSync(Module, AutoReg): self.data = Signal(10) self._r_char_synced = RegisterField(1, READ_ONLY, WRITE_ONLY) + self._r_ctl_pos = RegisterField(bits_for(9), READ_ONLY, WRITE_ONLY) ### @@ -48,5 +49,6 @@ class CharSync(Module, AutoReg): previous_control_position.eq(control_position) ] self.specials += MultiReg(self.synced, self._r_char_synced.field.w) + self.specials += MultiReg(word_sel, self._r_ctl_pos.field.w) self.sync.pix += self.data.eq(raw >> word_sel)