From ed1d29958a5e9dda55d1316275040eed5284050e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 26 Mar 2021 16:22:12 +0100 Subject: [PATCH] cores/video/VideoFrameBuffer: Fix colors ordering. --- litex/soc/cores/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/video.py b/litex/soc/cores/video.py index 7d31c3021..dc81ef7bd 100644 --- a/litex/soc/cores/video.py +++ b/litex/soc/cores/video.py @@ -608,9 +608,9 @@ class VideoFrameBuffer(Module, AutoCSR): ), vtg_sink.connect(source, keep={"de", "hsync", "vsync"}), - source.r.eq(self.cdc.source.data[ 0: 8]), + source.r.eq(self.cdc.source.data[16:24]), source.g.eq(self.cdc.source.data[ 8:16]), - source.b.eq(self.cdc.source.data[16:24]), + source.b.eq(self.cdc.source.data[ 0: 8]), ] # Video PHYs ---------------------------------------------------------------------------------------