From f3ccd140c2a38e3ac7af7d03f01c24464635eec6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 12 Nov 2020 14:26:00 +0100 Subject: [PATCH] targets/simple: add try/except on leds. --- litex_boards/targets/simple.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/litex_boards/targets/simple.py b/litex_boards/targets/simple.py index 99e8b07..7efef10 100755 --- a/litex_boards/targets/simple.py +++ b/litex_boards/targets/simple.py @@ -36,10 +36,13 @@ class BaseSoC(SoCCore): self.submodules.crg = CRG(platform.request(platform.default_clk_name)) # Leds ------------------------------------------------------------------------------------- - self.submodules.leds = LedChaser( - pads = platform.request_all("user_led"), - sys_clk_freq = sys_clk_freq) - self.add_csr("leds") + try: + self.submodules.leds = LedChaser( + pads = platform.request_all("user_led"), + sys_clk_freq = sys_clk_freq) + self.add_csr("leds") + except: + pass # Build --------------------------------------------------------------------------------------------