liteeth/core: Allow configuration of full_mem_we parameter
This commit is contained in:
parent
e14c90dbc3
commit
c3b9850366
|
@ -219,12 +219,13 @@ class MACCore(PHYCore):
|
||||||
|
|
||||||
# MAC --------------------------------------------------------------------------------------
|
# MAC --------------------------------------------------------------------------------------
|
||||||
self.submodules.ethmac = LiteEthMAC(
|
self.submodules.ethmac = LiteEthMAC(
|
||||||
phy = self.ethphy,
|
phy = self.ethphy,
|
||||||
dw = 32,
|
dw = 32,
|
||||||
interface = "wishbone",
|
interface = "wishbone",
|
||||||
endianness = core_config["endianness"],
|
endianness = core_config["endianness"],
|
||||||
nrxslots = nrxslots,
|
nrxslots = nrxslots,
|
||||||
ntxslots = ntxslots)
|
ntxslots = ntxslots,
|
||||||
|
full_memory_we = core_config.get("full_memory_we", False))
|
||||||
self.add_wb_slave(self.mem_map["ethmac"], self.ethmac.bus)
|
self.add_wb_slave(self.mem_map["ethmac"], self.ethmac.bus)
|
||||||
self.add_memory_region("ethmac", self.mem_map["ethmac"], mac_memsize, type="io")
|
self.add_memory_region("ethmac", self.mem_map["ethmac"], mac_memsize, type="io")
|
||||||
self.add_csr("ethmac")
|
self.add_csr("ethmac")
|
||||||
|
|
Loading…
Reference in New Issue