Skip to content

Commit 02884fe

Browse files
author
whitequark
committedJan 30, 2017
kc705: forward rx/tx slot count to LiteEthMAC from MiniSoC.
1 parent b0d940a commit 02884fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎misoc/targets/kc705.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class MiniSoC(BaseSoC):
109109
}
110110
mem_map.update(BaseSoC.mem_map)
111111

112-
def __init__(self, *args, **kwargs):
112+
def __init__(self, *args, ethmac_nrxslots=2, ethmac_ntxslots=2, **kwargs):
113113
BaseSoC.__init__(self, *args, **kwargs)
114114

115115
self.csr_devices += ["ethphy", "ethmac"]
@@ -118,7 +118,8 @@ def __init__(self, *args, **kwargs):
118118
eth_clocks = self.platform.request("eth_clocks")
119119
self.submodules.ethphy = LiteEthPHY(eth_clocks,
120120
self.platform.request("eth"), clk_freq=self.clk_freq)
121-
self.submodules.ethmac = LiteEthMAC(phy=self.ethphy, dw=32, interface="wishbone")
121+
self.submodules.ethmac = LiteEthMAC(phy=self.ethphy, dw=32, interface="wishbone",
122+
nrxslots=ethmac_nrxslots, ntxslots=ethmac_ntxslots)
122123
self.add_wb_slave(mem_decoder(self.mem_map["ethmac"]), self.ethmac.bus)
123124
self.add_memory_region("ethmac", self.mem_map["ethmac"] | self.shadow_base, 0x2000)
124125

0 commit comments

Comments
 (0)
Please sign in to comment.