From 06064d33aa1b2d6cd607ceb94770e97610a20d85 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 9 May 2013 11:27:24 +0200 Subject: [PATCH] dvisampler/dma: better 8:8:8 -> 10:10:10 conversion --- milkymist/dvisampler/dma.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/milkymist/dvisampler/dma.py b/milkymist/dvisampler/dma.py index 0013bc18..1eddc422 100644 --- a/milkymist/dvisampler/dma.py +++ b/milkymist/dvisampler/dma.py @@ -98,9 +98,9 @@ class DMA(Module): encoded_pixel = Signal(32) self.comb += [ encoded_pixel.eq(Cat( - Replicate(0, 2), self.frame.payload.b, - Replicate(0, 2), self.frame.payload.g, - Replicate(0, 2), self.frame.payload.r)) + self.frame.payload.b[6:], self.frame.payload.b, + self.frame.payload.g[6:], self.frame.payload.g, + self.frame.payload.r[6:], self.frame.payload.r)) ] pack_factor = bus_dw//32 assert(pack_factor & (pack_factor - 1) == 0) # only support powers of 2 -- 2.30.2