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
93edf21c
Commit
93edf21c
authored
1 year ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-207
: Added comments to filelist compile script
parent
de642492
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/filelist_compile.py
+6
-1
6 additions, 1 deletion
bin/filelist_compile.py
with
6 additions
and
1 deletion
bin/filelist_compile.py
+
6
−
1
View file @
93edf21c
...
...
@@ -12,8 +12,10 @@
import
argparse
import
os
verilog_extensions
=
(
"
.v
"
,
"
.sv
"
)
# Files with these extensions are included in compiled filelists
verilog_extensions
=
(
"
.v
"
,
"
.sv
"
,
"
.vh
"
)
# Exclude paths including these strings
filelist_exclusions
=
[
"
cortex
"
,
"
dma
"
]
filelist_header
=
"""
//-----------------------------------------------------------------------------
...
...
@@ -89,12 +91,15 @@ def filelist_compile(args):
print
(
"
------------------
"
)
print
(
"
Compiling Filelist
"
)
print
(
"
------------------
"
)
# Read in filelist and add newlines to paths
filelist
=
read_list
(
input_filelist
)
filelist
=
[
x
+
"
\n
"
for
x
in
filelist
]
# Create string of all paths to write out
filelist_str
=
filelist_header
for
path
in
filelist
:
filelist_str
+=
path
print
(
"
Compile Done
"
)
print
(
"
------------------
"
)
# Write out output filelist
f_outlist
=
open
(
output_filelist
,
"
w
"
)
f_outlist
.
write
(
filelist_str
)
f_outlist
.
close
()
...
...
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