diff --git a/litex/soc/cores/led.py b/litex/soc/cores/led.py index e6bc6d9a7..7882bee24 100644 --- a/litex/soc/cores/led.py +++ b/litex/soc/cores/led.py @@ -152,7 +152,7 @@ class WS2812(LiteXModule): # Internal Signals. - led_count = Signal(max=nleds) + led_count = Signal(max=max(nleds, 2)) led_data = Signal(24) xfer_start = Signal() xfer_done = Signal()