mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
hwdef-parse: populate all memory ranges based on name
This used to overwrite earlier memory ranges because the same was used ('baseaddr', 'highaddr'). Now, deduce name from BASENAME and remove prefix `C_`.
This commit is contained in:
parent
02ea98dd97
commit
fb37253623
1 changed files with 5 additions and 2 deletions
|
@ -157,8 +157,11 @@ for mrange in mmap:
|
|||
instance = mrange.get('INSTANCE')
|
||||
|
||||
if instance in ips:
|
||||
ips[instance]['baseaddr'] = int(mrange.get('BASEVALUE'), 16);
|
||||
ips[instance]['highaddr'] = int(mrange.get('HIGHVALUE'), 16);
|
||||
base_name = remove_prefix(mrange.get('BASENAME'), 'C_').lower()
|
||||
high_name = remove_prefix(mrange.get('HIGHNAME'), 'C_').lower()
|
||||
|
||||
ips[instance][base_name] = int(mrange.get('BASEVALUE'), 16);
|
||||
ips[instance][high_name] = int(mrange.get('HIGHVALUE'), 16);
|
||||
|
||||
# find AXI-Stream switch port mapping
|
||||
switch = root.find('.//MODULE[@MODTYPE="axis_switch"]')
|
||||
|
|
Loading…
Add table
Reference in a new issue