soc: Replace remaining add_wb_master call by self.bus.add_master.
This commit is contained in:
parent
162231fb8f
commit
4de54387d3
|
@ -1530,7 +1530,7 @@ class LiteXSoC(SoC):
|
||||||
self.check_if_exists(name)
|
self.check_if_exists(name)
|
||||||
etherbone = LiteEthEtherbone(ethcore.udp, udp_port, buffer_depth=buffer_depth, cd=name)
|
etherbone = LiteEthEtherbone(ethcore.udp, udp_port, buffer_depth=buffer_depth, cd=name)
|
||||||
setattr(self.submodules, name, etherbone)
|
setattr(self.submodules, name, etherbone)
|
||||||
self.add_wb_master(etherbone.wishbone.bus)
|
self.bus.add_master(master=etherbone.wishbone.bus)
|
||||||
|
|
||||||
# Timing constraints
|
# Timing constraints
|
||||||
if with_timing_constraints:
|
if with_timing_constraints:
|
||||||
|
@ -1753,8 +1753,8 @@ class LiteXSoC(SoC):
|
||||||
# MMAP.
|
# MMAP.
|
||||||
self.check_if_exists(f"{name}_mmap")
|
self.check_if_exists(f"{name}_mmap")
|
||||||
mmap = LitePCIeWishboneMaster(self.pcie_endpoint, base_address=self.mem_map["csr"])
|
mmap = LitePCIeWishboneMaster(self.pcie_endpoint, base_address=self.mem_map["csr"])
|
||||||
self.add_wb_master(mmap.wishbone)
|
|
||||||
setattr(self.submodules, f"{name}_mmap", mmap)
|
setattr(self.submodules, f"{name}_mmap", mmap)
|
||||||
|
self.bus.add_master(master=mmap.wishbone)
|
||||||
|
|
||||||
# MSI.
|
# MSI.
|
||||||
if with_msi:
|
if with_msi:
|
||||||
|
|
|
@ -233,7 +233,7 @@ class SimSoC(SoCCore):
|
||||||
self.submodules.udp = LiteEthUDP(self.ip, etherbone_ip_address, dw=8)
|
self.submodules.udp = LiteEthUDP(self.ip, etherbone_ip_address, dw=8)
|
||||||
# Etherbone
|
# Etherbone
|
||||||
self.submodules.etherbone = LiteEthEtherbone(self.udp, 1234, mode="master")
|
self.submodules.etherbone = LiteEthEtherbone(self.udp, 1234, mode="master")
|
||||||
self.add_wb_master(self.etherbone.wishbone.bus)
|
self.bus.add_master(master=self.etherbone.wishbone.bus)
|
||||||
|
|
||||||
# Ethernet ---------------------------------------------------------------------------------
|
# Ethernet ---------------------------------------------------------------------------------
|
||||||
elif with_ethernet:
|
elif with_ethernet:
|
||||||
|
|
Loading…
Reference in New Issue