From 022207c5c6efb073e07e037ee2c25182b8280d9c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 24 Oct 2022 09:10:24 +0200 Subject: [PATCH] liteeth_gen: Use fixed CSR mapping to avoid moving base addresses with LiteX changes/simplifications. --- liteeth/gen.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/liteeth/gen.py b/liteeth/gen.py index 8428599..fa5d283 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -156,6 +156,11 @@ def get_udp_port_ios(name, data_width, dynamic_params=False): # PHY Core ----------------------------------------------------------------------------------------- class PHYCore(SoCMini): + SoCMini.csr_map = { + "ctrl" : 0, + "ethphy" : 1, + "ethmac" : 2, + } def __init__(self, platform, core_config): for deprecated in ("csr_map", "mem_map"): if deprecated in core_config: