From 03bb929f27e6b0ba2a2aabd5e50a4180b88a6de9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 23 Nov 2020 10:14:20 +0100 Subject: [PATCH] colorlight_5a_75x: add LedChaser. --- litex_boards/targets/colorlight_5a_75x.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litex_boards/targets/colorlight_5a_75x.py b/litex_boards/targets/colorlight_5a_75x.py index 0b844c0..7366261 100755 --- a/litex_boards/targets/colorlight_5a_75x.py +++ b/litex_boards/targets/colorlight_5a_75x.py @@ -56,6 +56,7 @@ from litex.build.lattice.trellis import trellis_args, trellis_argdict from litex.soc.cores.clock import * from litex.soc.integration.soc_core import * from litex.soc.integration.builder import * +from litex.soc.cores.led import LedChaser from litedram.modules import M12L16161A, M12L64322A from litedram.phy import GENSDRPHY, HalfRateGENSDRPHY @@ -171,6 +172,12 @@ class BaseSoC(SoCCore): if with_etherbone: self.add_etherbone(phy=self.ethphy) + # Leds ------------------------------------------------------------------------------------- + self.submodules.leds = LedChaser( + pads = platform.request_all("user_led_n"), + sys_clk_freq = sys_clk_freq) + self.add_csr("leds") + # Build -------------------------------------------------------------------------------------------- def main():