Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
VILLASfpga
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
VILLASfpga
Commits
594f6f83
Commit
594f6f83
authored
Jan 31, 2018
by
Daniel Krebs
Committed by
Steffen Vogel
Feb 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwdef-parse: treat PCIe bridge the same as all other IPs
This is needed in order to construct a global memory graph.
parent
609171e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
19 deletions
+10
-19
scripts/hwdef-parse.py
scripts/hwdef-parse.py
+10
-19
No files found.
scripts/hwdef-parse.py
View file @
594f6f83
...
...
@@ -34,7 +34,8 @@ whitelist = [
[
'acs.eonerc.rwth-aachen.de'
,
'hls'
],
[
'acs.eonerc.rwth-aachen.de'
,
'sysgen'
],
[
'xilinx.com'
,
'ip'
,
'axi_gpio'
],
[
'xilinx.com'
,
'ip'
,
'axi_bram_ctrl'
]
[
'xilinx.com'
,
'ip'
,
'axi_bram_ctrl'
],
[
'xilinx.com'
,
'ip'
,
'axi_pcie'
]
]
# List of VLNI ids of AXI4-Stream infrastructure IP cores which do not alter data
...
...
@@ -140,29 +141,19 @@ for module in modules:
mem
=
ips
[
instance
]
.
setdefault
(
'memory-view'
,
{})
for
mrange
in
mmap
:
mem_interface
=
remove_prefix
(
mrange
.
get
(
'MASTERBUSINTERFACE'
),
'M_AXI_
'
)
mem_interface
=
mrange
.
get
(
'MASTERBUSINTERFACE
'
)
mem_instance
=
mrange
.
get
(
'INSTANCE'
)
mem_block
=
mrange
.
get
(
'ADDRESSBLOCK'
)
entry
=
mem
.
setdefault
(
mem_interface
,
{})
.
setdefault
(
mem_instance
,
{})
_interface
=
mem
.
setdefault
(
mem_interface
,
{})
_instance
=
_interface
.
setdefault
(
mem_instance
,
{})
_block
=
_instance
.
setdefault
(
mem_block
,
{})
entry
[
'baseaddr'
]
=
int
(
mrange
.
get
(
'BASEVALUE'
),
16
);
entry
[
'highaddr'
]
=
int
(
mrange
.
get
(
'HIGHVALUE'
),
16
);
_block
[
'baseaddr'
]
=
int
(
mrange
.
get
(
'BASEVALUE'
),
16
)
_block
[
'highaddr'
]
=
int
(
mrange
.
get
(
'HIGHVALUE'
),
16
)
_block
[
'size'
]
=
_block
[
'highaddr'
]
-
_block
[
'baseaddr'
]
+
1
# find PCI-e module to extract memory map
pcie
=
root
.
find
(
'.//MODULE[@MODTYPE="axi_pcie"]'
)
mmap
=
pcie
.
find
(
'.//MEMORYMAP'
)
for
mrange
in
mmap
:
instance
=
mrange
.
get
(
'INSTANCE'
)
if
instance
in
ips
:
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"]'
)
busifs
=
switch
.
find
(
'.//BUSINTERFACES'
)
...
...
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