Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SoCTools Flow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
SoCTools Flow
Commits
de642492
Commit
de642492
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-205
: Added exclusions options to filelist compile to remove filelists...
SOC1-205
: Added exclusions options to filelist compile to remove filelists including specific arm IP
parent
fa8ca0c8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/filelist_compile.py
+8
-3
8 additions, 3 deletions
bin/filelist_compile.py
bin/htmlgen/makefile
+1
-1
1 addition, 1 deletion
bin/htmlgen/makefile
with
9 additions
and
4 deletions
bin/
htmlgen/
filelist_compile.py
→
bin/filelist_compile.py
+
8
−
3
View file @
de642492
...
@@ -14,6 +14,8 @@ import os
...
@@ -14,6 +14,8 @@ import os
verilog_extensions
=
(
"
.v
"
,
"
.sv
"
)
verilog_extensions
=
(
"
.v
"
,
"
.sv
"
)
filelist_exclusions
=
[
"
cortex
"
,
"
dma
"
]
filelist_header
=
"""
//-----------------------------------------------------------------------------
filelist_header
=
"""
//-----------------------------------------------------------------------------
// AUTOGENERATED: Compiled Filelist
// AUTOGENERATED: Compiled Filelist
// A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license.
// A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license.
...
@@ -51,14 +53,16 @@ def read_list(filelist):
...
@@ -51,14 +53,16 @@ def read_list(filelist):
for
line
in
filelines
:
for
line
in
filelines
:
# Remove whitespace and split line into arguments
# Remove whitespace and split line into arguments
line_list
=
line
.
strip
().
split
()
line_list
=
line
.
strip
().
split
()
# print(line_list)
# Check Line isn't a comment
# Check Line isn't a comment
if
not
line_list
[
0
].
startswith
(
"
//
"
):
if
not
line_list
[
0
].
startswith
(
"
//
"
):
# If line is a reference to another filelist
# If line is a reference to another filelist
if
line_list
[
0
]
==
"
-f
"
:
if
line_list
[
0
]
==
"
-f
"
:
# Recursively call this function and append list to this compiled Filelist
# Recursively call this function and append list to this compiled Filelist
print
(
line_list
[
1
])
if
any
(
ext
in
line_list
[
1
]
for
ext
in
filelist_exclusions
)
and
args
.
exclude
==
True
:
compiled_filelist
+=
read_list
(
env_var_substitute
(
line_list
[
1
]))
print
(
line_list
[
1
]
+
"
is in the exclusions list
"
)
else
:
print
(
line_list
[
1
])
compiled_filelist
+=
read_list
(
env_var_substitute
(
line_list
[
1
]))
elif
line_list
[
0
]
==
"
-y
"
:
elif
line_list
[
0
]
==
"
-y
"
:
# Append to filelist
# Append to filelist
...
@@ -100,5 +104,6 @@ if __name__ == "__main__":
...
@@ -100,5 +104,6 @@ if __name__ == "__main__":
parser
=
argparse
.
ArgumentParser
(
description
=
'
Compiles Filelist to Read
'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'
Compiles Filelist to Read
'
)
parser
.
add_argument
(
"
-f
"
,
"
--filelist
"
,
type
=
str
,
help
=
"
Input Filelist to Read
"
)
parser
.
add_argument
(
"
-f
"
,
"
--filelist
"
,
type
=
str
,
help
=
"
Input Filelist to Read
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
type
=
str
,
help
=
"
Output Filelist location
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
type
=
str
,
help
=
"
Output Filelist location
"
)
parser
.
add_argument
(
"
-e
"
,
"
--exclude
"
,
action
=
'
store_true
'
,
help
=
"
Exclude filists including these strings
"
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
filelist_compile
(
args
)
filelist_compile
(
args
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bin/htmlgen/makefile
+
1
−
1
View file @
de642492
...
@@ -26,5 +26,5 @@ gen_html:
...
@@ -26,5 +26,5 @@ gen_html:
@
mkdir
-p
$(
OUT_DIR
)
/build
@
mkdir
-p
$(
OUT_DIR
)
/build
@
(
cd
$(
OUT_DIR
)
/build
;
\
@
(
cd
$(
OUT_DIR
)
/build
;
\
rm
*
.html
;
rm
*
.gif
;
\
rm
*
.html
;
rm
*
.gif
;
\
$(
SOCTOOLS_FLOW_DIR
)
/bin/
htmlgen/
filelist_compile.py
-f
$(
FILELIST
)
-o
$(
OUTPUT_FILELIST
)
;
\
$(
SOCTOOLS_FLOW_DIR
)
/bin/filelist_compile.py
-e
-f
$(
FILELIST
)
-o
$(
OUTPUT_FILELIST
)
;
\
$(
SOCTOOLS_FLOW_DIR
)
/bin/htmlgen/v2html/v2html
-f
$(
OUTPUT_FILELIST
)
-ht
$(
TOP_MODULE
)
;
)
$(
SOCTOOLS_FLOW_DIR
)
/bin/htmlgen/v2html/v2html
-f
$(
OUTPUT_FILELIST
)
-ht
$(
TOP_MODULE
)
;
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment