cores/video/VideoFrameBuffer: Fix colors ordering.

This commit is contained in:
Florent Kermarrec 2021-03-26 16:22:12 +01:00
parent 714903e65b
commit ed1d29958a
1 changed files with 2 additions and 2 deletions

View File

@ -608,9 +608,9 @@ class VideoFrameBuffer(Module, AutoCSR):
), ),
vtg_sink.connect(source, keep={"de", "hsync", "vsync"}), 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.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 --------------------------------------------------------------------------------------- # Video PHYs ---------------------------------------------------------------------------------------