Skip to content

Commit

Permalink
soc/add_etherbone: Revert sys_clk domain renaming when ethmac is disa…
Browse files Browse the repository at this point in the history
…bled.
  • Loading branch information
enjoy-digital committed Feb 9, 2024
1 parent afcf78f commit 1b32d8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,9 @@ def add_etherbone(self, name="etherbone", phy=None, phy_cd="eth", data_width=8,
# Use PHY's eth_tx/eth_rx clock domains.
ethcore = ClockDomainsRenamer({
"eth_tx": phy_cd + "_tx",
"eth_rx": phy_cd + "_rx"})(ethcore)
"eth_rx": phy_cd + "_rx",
"sys" : {True: "sys", False: phy_cd + "_rx"}[with_ethmac],
})(ethcore)
self.add_module(name=f"ethcore_{name}", module=ethcore)

etherbone_cd = "sys"
Expand Down

0 comments on commit 1b32d8a

Please sign in to comment.