mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #924 from developandplay/patch-2
Use add_etherbone in simulation
This commit is contained in:
commit
d7f4293743
1 changed files with 4 additions and 8 deletions
|
@ -262,15 +262,11 @@ class SimSoC(SoCCore):
|
||||||
elif with_etherbone:
|
elif with_etherbone:
|
||||||
# Ethernet PHY
|
# Ethernet PHY
|
||||||
self.submodules.ethphy = LiteEthPHYModel(self.platform.request("eth", 0)) # FIXME
|
self.submodules.ethphy = LiteEthPHYModel(self.platform.request("eth", 0)) # FIXME
|
||||||
# Ethernet Core
|
self.add_etherbone(
|
||||||
ethcore = LiteEthUDPIPCore(self.ethphy,
|
phy = self.ethphy,
|
||||||
mac_address = etherbone_mac_address,
|
|
||||||
ip_address = etherbone_ip_address,
|
ip_address = etherbone_ip_address,
|
||||||
clk_freq = sys_clk_freq)
|
mac_address = etherbone_mac_address
|
||||||
self.submodules.ethcore = ethcore
|
)
|
||||||
# Etherbone
|
|
||||||
self.submodules.etherbone = LiteEthEtherbone(self.ethcore.udp, 1234, mode="master")
|
|
||||||
self.add_wb_master(self.etherbone.wishbone.bus)
|
|
||||||
|
|
||||||
# Analyzer ---------------------------------------------------------------------------------
|
# Analyzer ---------------------------------------------------------------------------------
|
||||||
if with_analyzer:
|
if with_analyzer:
|
||||||
|
|
Loading…
Reference in a new issue