From: Sebastien Bourdeauducq Date: Tue, 3 Jul 2012 16:14:39 +0000 (+0200) Subject: framebuffer: fix computation of alignment bits X-Git-Tag: 24jan2021_ls180~3114 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=210e473b5d11895288047a02cfee83f294aefa14;p=litex.git framebuffer: fix computation of alignment bits --- diff --git a/milkymist/framebuffer/__init__.py b/milkymist/framebuffer/__init__.py index 89e74a86..92965641 100644 --- a/milkymist/framebuffer/__init__.py +++ b/milkymist/framebuffer/__init__.py @@ -224,7 +224,7 @@ class FakeDMA(Actor): class Framebuffer: def __init__(self, address, asmiport): asmi_bits = asmiport.hub.aw - alignment_bits = bits_for(asmiport.hub.dw//8) + alignment_bits = bits_for(asmiport.hub.dw//8) - 1 length_bits = _hbits + _vbits + 2 - alignment_bits pack_factor = asmiport.hub.dw//_bpp packed_pixels = structuring.pack_layout(_pixel_layout, pack_factor)