targets: use platform.request_all on LedChaser.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 6 Aug 2020 18:02:17 +0000 (20:02 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 6 Aug 2020 18:02:17 +0000 (20:02 +0200)
litex/boards/targets/arty.py
litex/boards/targets/de0nano.py
litex/boards/targets/genesys2.py
litex/boards/targets/kc705.py
litex/boards/targets/kcu105.py
litex/boards/targets/minispartan6.py
litex/boards/targets/netv2.py
litex/boards/targets/nexys4ddr.py
litex/boards/targets/nexys_video.py
litex/boards/targets/ulx3s.py
litex/boards/targets/versa_ecp5.py

index 7eab57de0b5692996168aa988ef8e1e00c68d13a..8406cde59ba51f67529ade41e842deaf2afd8ba9 100755 (executable)
@@ -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")
 
index 758fca14c5dec61b237575f504f2c9b8209fc081..729b29f4b316eb9216f43590a6d7214f9516ceda 100755 (executable)
@@ -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")
 
index 3669783e25a688001a0aa00baf74d68cd6385108..ed797989e590f39b94910f764547109eec89666f 100755 (executable)
@@ -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")
 
index 493fc23c9bbd6d88761cadba8fd5e08b3d7de992..964eea012ca9c4791a2c57d846320c126481118c 100755 (executable)
@@ -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")
 
index 9ce42dc6b861e5fed1e5bfab9f8557e536d2569d..bf29a7de5195c6efd9406931337934fe2b6c7c9e 100755 (executable)
@@ -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")
 
index 8897dbda28e54fcb0c718edd520ab594c1ba1224..0c6febd33087d3c34c0cbebb93aafa8ec371a67a 100755 (executable)
@@ -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")
 
index 25273f44e0e999621fb91209d923e0b33c83023d..42d85070932c7f76b90d9829a19d53dac43605bc 100755 (executable)
@@ -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")
 
index 332031548c5bc2e8501a6529a7d79721757d3a32..a776f4a17ec12036c99e0836fa14d7cad02e3730 100755 (executable)
@@ -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")
 
index aa92109241a87f5e2933cb3730f9df9da3eea7db..194fd879a51a3be5d2f0515c60f3b28ab06249fd 100755 (executable)
@@ -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")
 
index 76f7387855834e089985ac70988a54b1209b4467..1fd787fd4046adccb0cd5927b6e87f63d740adf8 100755 (executable)
@@ -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")
 
index 7a437bb7fb2006229e13665b425ff2ee313cb5e2..9c7a7ddd96305b5914d791734723b27328a60995 100755 (executable)
@@ -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")