Skip to content
Snippets Groups Projects
Commit f3ccd140 authored by Florent Kermarrec's avatar Florent Kermarrec
Browse files

targets/simple: add try/except on leds.

parent 7c6df677
No related branches found
No related tags found
No related merge requests found
......@@ -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 --------------------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment