From: Sebastien Bourdeauducq Date: Sun, 1 Jul 2012 19:44:33 +0000 (+0200) Subject: framebuffer: fix pixel split X-Git-Tag: 24jan2021_ls180~3118 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bf5461ac01d584c7464fff29050746a3843a6c2;p=litex.git framebuffer: fix pixel split --- diff --git a/milkymist/framebuffer/__init__.py b/milkymist/framebuffer/__init__.py index 65a2bbce..5800a64f 100644 --- a/milkymist/framebuffer/__init__.py +++ b/milkymist/framebuffer/__init__.py @@ -110,12 +110,13 @@ class VTG(Actor): hcounter = Signal(BV(_hbits)) vcounter = Signal(BV(_vbits)) + skip = _bpc - _bpc_dac comb = [ active.eq(hactive & vactive), If(active, - self.token("dac").r.eq(self.token("pixels").r[:_bpc_dac]), - self.token("dac").g.eq(self.token("pixels").g[:_bpc_dac]), - self.token("dac").b.eq(self.token("pixels").b[:_bpc_dac]) + self.token("dac").r.eq(self.token("pixels").r[skip:]), + self.token("dac").g.eq(self.token("pixels").g[skip:]), + self.token("dac").b.eq(self.token("pixels").b[skip:]) ), generate_en.eq(self.endpoints["timing"].stb & self.endpoints["dac"].ack \