From 210e473b5d11895288047a02cfee83f294aefa14 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 3 Jul 2012 18:14:39 +0200 Subject: [PATCH] framebuffer: fix computation of alignment bits --- milkymist/framebuffer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2