From a916a1df2490e9249285a485ea42442a6d86468b Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Fri, 25 Feb 2022 09:26:01 +0100 Subject: [PATCH] video:ColorBars: fix for hres not divisible by 8 --- litex/soc/cores/video.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/soc/cores/video.py b/litex/soc/cores/video.py index 510c9e527..60ffadb17 100644 --- a/litex/soc/cores/video.py +++ b/litex/soc/cores/video.py @@ -300,6 +300,9 @@ class ColorBarsPattern(Module): NextValue(pix, 0), NextValue(bar, bar + 1) ) + ).Else( + NextValue(pix, 0), + NextValue(bar, 0) ) )