From: Sebastien Bourdeauducq Date: Thu, 9 May 2013 09:27:24 +0000 (+0200) Subject: dvisampler/dma: better 8:8:8 -> 10:10:10 conversion X-Git-Tag: 24jan2021_ls180~2938 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06064d33aa1b2d6cd607ceb94770e97610a20d85;p=litex.git dvisampler/dma: better 8:8:8 -> 10:10:10 conversion --- 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