From c17421bccb08ea3db41dccab9523d2fd00052b55 Mon Sep 17 00:00:00 2001 From: developandplay <34752929+developandplay@users.noreply.github.com> Date: Wed, 26 May 2021 23:18:22 +0200 Subject: [PATCH] Use add_etherbone in simulation Fixes not working analyzer example from wiki --- litex/tools/litex_sim.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/litex/tools/litex_sim.py b/litex/tools/litex_sim.py index 16ba5801c..f415088c0 100755 --- a/litex/tools/litex_sim.py +++ b/litex/tools/litex_sim.py @@ -262,15 +262,11 @@ class SimSoC(SoCCore): elif with_etherbone: # Ethernet PHY self.submodules.ethphy = LiteEthPHYModel(self.platform.request("eth", 0)) # FIXME - # Ethernet Core - ethcore = LiteEthUDPIPCore(self.ethphy, - mac_address = etherbone_mac_address, + self.add_etherbone( + phy = self.ethphy, ip_address = etherbone_ip_address, - clk_freq = sys_clk_freq) - self.submodules.ethcore = ethcore - # Etherbone - self.submodules.etherbone = LiteEthEtherbone(self.ethcore.udp, 1234, mode="master") - self.add_wb_master(self.etherbone.wishbone.bus) + mac_address = etherbone_mac_address + ) # Analyzer --------------------------------------------------------------------------------- if with_analyzer: