Skip to content

Commit

Permalink
liteeth_gen: Make udp_ports definition optional in .yml file (ex for …
Browse files Browse the repository at this point in the history
…configuration with only Etherbone).
  • Loading branch information
enjoy-digital committed Feb 29, 2024
1 parent 21ff1b9 commit 3061bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liteeth/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def __init__(self, platform, core_config):
self.comb += axil_bus.connect_to_pads(platform.request("mmap"), mode="master")

# UDP Ports --------------------------------------------------------------------------------
for name, port_cfg in core_config["udp_ports"].items():
for name, port_cfg in core_config.get("udp_ports", {}).items():
# mode either `raw` or `stream`, default to streamer to be backwards compatible
mode = port_cfg.get("mode", "streamer")
assert mode == "raw" or mode == "streamer"
Expand Down

0 comments on commit 3061bf9

Please sign in to comment.