From ee5bfd4d3d840c1ba7bcabcf7bb1896a566ac592 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 24 Mar 2013 00:44:50 +0100 Subject: [PATCH] dvisampler/charsync: report position --- milkymist/dvisampler/charsync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/milkymist/dvisampler/charsync.py b/milkymist/dvisampler/charsync.py index f91ff3d5c..41268f94d 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)