Skip to content

Commit 421b197

Browse files
author
whitequark
committedJan 30, 2017
Fix the value of mem::ETHMAC_SIZE.
1 parent 02884fe commit 421b197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎misoc/targets/kc705.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ def __init__(self, *args, ethmac_nrxslots=2, ethmac_ntxslots=2, **kwargs):
121121
self.submodules.ethmac = LiteEthMAC(phy=self.ethphy, dw=32, interface="wishbone",
122122
nrxslots=ethmac_nrxslots, ntxslots=ethmac_ntxslots)
123123
self.add_wb_slave(mem_decoder(self.mem_map["ethmac"]), self.ethmac.bus)
124-
self.add_memory_region("ethmac", self.mem_map["ethmac"] | self.shadow_base, 0x2000)
124+
self.add_memory_region("ethmac", self.mem_map["ethmac"] | self.shadow_base,
125+
(ethmac_nrxslots + ethmac_ntxslots) * 0x800)
125126

126127
self.crg.cd_sys.clk.attr.add("keep")
127128
self.ethphy.crg.cd_eth_tx.clk.attr.add("keep")

0 commit comments

Comments
 (0)
Please sign in to comment.