From 61dcd1e8fd0e5728f29d2e01a7177936da53aa2f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 3 Mar 2021 09:02:41 +0100 Subject: [PATCH] soc/cores/led: Minor cosmetic cleanups. --- litex/soc/cores/led.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litex/soc/cores/led.py b/litex/soc/cores/led.py index 2ffdeb1cb..908356708 100644 --- a/litex/soc/cores/led.py +++ b/litex/soc/cores/led.py @@ -21,10 +21,10 @@ class LedChaser(Module, AutoCSR): # # # - n = len(pads) - chaser = Signal(n) - mode = Signal(reset=_CHASER_MODE) - timer = WaitTimer(int(period*sys_clk_freq/(2*n))) + n = len(pads) + chaser = Signal(n) + mode = Signal(reset=_CHASER_MODE) + timer = WaitTimer(int(period*sys_clk_freq/(2*n))) self.submodules += timer self.comb += timer.wait.eq(~timer.done) self.sync += If(timer.done, chaser.eq(Cat(~chaser[-1], chaser)))