From cb0371b330ccd0bc4fd375961d168e4453202e09 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 2 Mar 2020 08:42:59 +0100 Subject: [PATCH] integration/soc: add ethphy CSR in target. --- litex/boards/targets/nexys4ddr.py | 1 + litex/soc/integration/soc.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/litex/boards/targets/nexys4ddr.py b/litex/boards/targets/nexys4ddr.py index a7439480..0caba97b 100755 --- a/litex/boards/targets/nexys4ddr.py +++ b/litex/boards/targets/nexys4ddr.py @@ -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): diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 021b7a19..8bbd4d2b 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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, -- 2.30.2