liteeth_gen: Use fixed CSR mapping to avoid moving base addresses with LiteX changes/simplifications.

This commit is contained in:
Florent Kermarrec 2022-10-24 09:10:24 +02:00
parent e9cdaa01a5
commit 022207c5c6
1 changed files with 5 additions and 0 deletions

View File

@ -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: