integration/soc: add ethphy CSR in target.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 2 Mar 2020 07:42:59 +0000 (08:42 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 2 Mar 2020 07:42:59 +0000 (08:42 +0100)
litex/boards/targets/nexys4ddr.py
litex/soc/integration/soc.py

index a743948054787688c1120fd2f9fffcc30935e8a2..0caba97b63de9c288df14deadcb5dd27a1f6318f 100755 (executable)
@@ -80,6 +80,7 @@ class BaseSoC(SoCSDRAM):
             self.submodules.ethphy = LiteEthPHYRMII(
                 clock_pads = self.platform.request("eth_clocks"),
                 pads       = self.platform.request("eth"))
+            self.add_csr("ethphy")
             self.add_ethernet(phy=self.ethphy)
 
     def add_sdcard(self):
index 021b7a19177259ccf7a2f7ad7372468703ae3506..8bbd4d2b272ca2986cbc812424e2dbd8111a2a05 100644 (file)
@@ -1014,8 +1014,6 @@ class LiteXSoC(SoC):
     def add_ethernet(self, phy):
         # Imports
         from liteeth.mac import LiteEthMAC
-        # PHY
-        self.add_csr("ethphy")
         # MAC
         self.submodules.ethmac = LiteEthMAC(
             phy        = phy,