mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
targets/siglent_sds1104xe: Update with new LiteX Ethernet/Etherbone integration.
This commit is contained in:
parent
1969b4f6d3
commit
6333fbe724
1 changed files with 2 additions and 16 deletions
|
@ -95,10 +95,8 @@ class BaseSoC(SoCCore):
|
||||||
l2_cache_size = kwargs.get("l2_size", 8192)
|
l2_cache_size = kwargs.get("l2_size", 8192)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Etherbone --------------------------------------------------------------------------------
|
# Etherbone + Ethernet ---------------------------------------------------------------------
|
||||||
if with_etherbone:
|
if with_etherbone:
|
||||||
from litex.soc.integration.soc import SoCRegion
|
|
||||||
|
|
||||||
# Ethernet PHY
|
# Ethernet PHY
|
||||||
self.ethphy = LiteEthPHYMII(
|
self.ethphy = LiteEthPHYMII(
|
||||||
clock_pads = self.platform.request("eth_clocks"),
|
clock_pads = self.platform.request("eth_clocks"),
|
||||||
|
@ -111,21 +109,9 @@ class BaseSoC(SoCCore):
|
||||||
ip_address = "192.168.1.51",
|
ip_address = "192.168.1.51",
|
||||||
mac_address = 0x10e2d5000001,
|
mac_address = 0x10e2d5000001,
|
||||||
data_width = 8,
|
data_width = 8,
|
||||||
interface = "hybrid",
|
with_ethmac = True,
|
||||||
endianness = self.cpu.endianness
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Software Interface.
|
|
||||||
self.ethmac = ethmac = self.get_module("ethcore_etherbone").mac
|
|
||||||
ethmac_region_size = (ethmac.rx_slots.constant + ethmac.tx_slots.constant)*ethmac.slot_size.constant
|
|
||||||
ethmac_region = SoCRegion(origin=self.mem_map.get("ethmac", None), size=ethmac_region_size, cached=False)
|
|
||||||
self.bus.add_slave(name="ethmac", slave=ethmac.bus, region=ethmac_region)
|
|
||||||
# Add IRQs (if enabled).
|
|
||||||
if self.irq.enabled:
|
|
||||||
self.irq.add("ethmac", use_loc_if_exists=True)
|
|
||||||
|
|
||||||
self.add_constant("ETH_PHY_NO_RESET") # Disable reset from BIOS to avoid disabling Hardware Interface.
|
|
||||||
|
|
||||||
# Video ------------------------------------------------------------------------------------
|
# Video ------------------------------------------------------------------------------------
|
||||||
video_timings = ("800x480@60Hz", {
|
video_timings = ("800x480@60Hz", {
|
||||||
"pix_clk" : 33.3e6,
|
"pix_clk" : 33.3e6,
|
||||||
|
|
Loading…
Reference in a new issue