targets/add_constant: avoid specifying value when value is None (=default).
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 26 Mar 2020 08:45:19 +0000 (09:45 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 26 Mar 2020 08:45:19 +0000 (09:45 +0100)
litex/boards/targets/kcu105.py
litex/boards/targets/versa_ecp5.py

index 30ff747e779a5dc90eecaccb435d41955b1c99d7..6e90ec47b976fc5290bdc2a21131d2fd03aa7597 100755 (executable)
@@ -67,7 +67,8 @@ class BaseSoC(SoCCore):
                 iodelay_clk_freq = 200e6,
                 cmd_latency      = 0)
             self.add_csr("ddrphy")
-            self.add_constant("USDDRPHY", None)
+            self.add_constant("USDDRPHY")
+            self.add_constant("USDDRPHY_DEBUG")
             self.add_sdram("sdram",
                 phy                     = self.ddrphy,
                 module                  = EDY4016A(sys_clk_freq, "1:4"),
index 0669e274708900e55ac4b1f4ce57cbbe7c9a4d74..216d7bb39052592fd6bf4be90e20b44150f2c1dc 100755 (executable)
@@ -87,7 +87,7 @@ class BaseSoC(SoCCore):
                 platform.request("ddram"),
                 sys_clk_freq=sys_clk_freq)
             self.add_csr("ddrphy")
-            self.add_constant("ECP5DDRPHY", None)
+            self.add_constant("ECP5DDRPHY")
             self.comb += self.crg.stop.eq(self.ddrphy.init.stop)
             self.add_sdram("sdram",
                 phy                     = self.ddrphy,