From: Florent Kermarrec Date: Thu, 6 Aug 2020 18:02:17 +0000 (+0200) Subject: targets: use platform.request_all on LedChaser. X-Git-Tag: 24jan2021_ls180~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9d3aab59d3fc24707d07bdf17f6bd1761cf1566;p=litex.git targets: use platform.request_all on LedChaser. --- diff --git a/litex/boards/targets/arty.py b/litex/boards/targets/arty.py index 7eab57de..8406cde5 100755 --- a/litex/boards/targets/arty.py +++ b/litex/boards/targets/arty.py @@ -114,7 +114,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(4)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/de0nano.py b/litex/boards/targets/de0nano.py index 758fca14..729b29f4 100755 --- a/litex/boards/targets/de0nano.py +++ b/litex/boards/targets/de0nano.py @@ -83,7 +83,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/genesys2.py b/litex/boards/targets/genesys2.py index 3669783e..ed797989 100755 --- a/litex/boards/targets/genesys2.py +++ b/litex/boards/targets/genesys2.py @@ -86,7 +86,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/kc705.py b/litex/boards/targets/kc705.py index 493fc23c..964eea01 100755 --- a/litex/boards/targets/kc705.py +++ b/litex/boards/targets/kc705.py @@ -86,7 +86,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/kcu105.py b/litex/boards/targets/kcu105.py index 9ce42dc6..bf29a7de 100755 --- a/litex/boards/targets/kcu105.py +++ b/litex/boards/targets/kcu105.py @@ -94,7 +94,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/minispartan6.py b/litex/boards/targets/minispartan6.py index 8897dbda..0c6febd3 100755 --- a/litex/boards/targets/minispartan6.py +++ b/litex/boards/targets/minispartan6.py @@ -86,7 +86,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/netv2.py b/litex/boards/targets/netv2.py index 25273f44..42d85070 100755 --- a/litex/boards/targets/netv2.py +++ b/litex/boards/targets/netv2.py @@ -87,7 +87,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(6)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/nexys4ddr.py b/litex/boards/targets/nexys4ddr.py index 33203154..a776f4a1 100755 --- a/litex/boards/targets/nexys4ddr.py +++ b/litex/boards/targets/nexys4ddr.py @@ -86,7 +86,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(16)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/nexys_video.py b/litex/boards/targets/nexys_video.py index aa921092..194fd879 100755 --- a/litex/boards/targets/nexys_video.py +++ b/litex/boards/targets/nexys_video.py @@ -86,7 +86,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/ulx3s.py b/litex/boards/targets/ulx3s.py index 76f73878..1fd787fd 100755 --- a/litex/boards/targets/ulx3s.py +++ b/litex/boards/targets/ulx3s.py @@ -105,7 +105,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds") diff --git a/litex/boards/targets/versa_ecp5.py b/litex/boards/targets/versa_ecp5.py index 7a437bb7..9c7a7ddd 100755 --- a/litex/boards/targets/versa_ecp5.py +++ b/litex/boards/targets/versa_ecp5.py @@ -119,7 +119,7 @@ class BaseSoC(SoCCore): # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser( - pads = Cat(*[platform.request("user_led", i) for i in range(8)]), + pads = platform.request_all("user_led"), sys_clk_freq = sys_clk_freq) self.add_csr("leds")