Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
9451f203
Commit
9451f203
authored
Mar 20, 2019
by
Carsten Heinz
Committed by
Jaco A. Hofmann
May 08, 2019
Browse files
Fix range in address map calculation for multiple slaves
parent
2d4e23b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/common/addressmap.tcl
View file @
9451f203
...
...
@@ -120,14 +120,15 @@ namespace eval addressmap {
foreach seg
[
lsort
[
get_bd_addr_segs -addressables -of_objects $master
]]
{
puts
[
format
"
$master:
$seg
-> 0x%08x (range: 0x%08x)"
$base $range
]
set sintf
[
get_bd_intf_pins -of_objects $seg
]
if
{
$range
<= 0
}
{
set range
[
get_property RANGE $seg
]
}
set srange $range
if
{
$range
<= 0
}
{
set srange
[
get_property RANGE $seg
]
}
set kind
[
get_property USAGE $seg
]
dict set address_map $sintf
"interface
$sintf
offset
$base
range
$range
kind
$kind
"
dict set address_map $sintf
"interface
$sintf
offset
$base
range
$
s
range
kind
$kind
"
if
{[
string compare $component
""
]
!= 0
}
{
add_platform_component $component $base
set component
[
increase_component_name $component
]
}
if
{
$stride
== 0
}
{
incr base $range
}
else
{
incr base $stride
}
if
{
$stride
== 0
}
{
incr base $
s
range
}
else
{
incr base $stride
}
}
return $address_map
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment