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
Compare revisions
73a86713b7fb0b98ef3fd59032b6c6326a20041f to c4a77721a1376ccc6e1bef173777d1852055b4a8
"test/services/mongo/telegraf_mongo_template.conf" did not exist on "c9110cf22d7d76be4efec0e1897a30aa1552d23a"
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
soclabs/soctools_flow
Select target project
No results found
c4a77721a1376ccc6e1bef173777d1852055b4a8
Select Git revision
Swap
Target
soclabs/soctools_flow
Select target project
soclabs/soctools_flow
1 result
73a86713b7fb0b98ef3fd59032b6c6326a20041f
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Add formality flist tcl generation
· c4a77721
Daniel Newbrook
authored
1 year ago
c4a77721
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/filelist_compile.py
+21
-10
21 additions, 10 deletions
bin/filelist_compile.py
with
21 additions
and
10 deletions
bin/filelist_compile.py
View file @
c4a77721
...
...
@@ -135,7 +135,7 @@ def read_list(filelist, first, incdirs, args):
if
first
==
True
:
if
args
.
genus
==
True
:
compiled_filelist
.
append
(
"
set_db init_hdl_search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
))
elif
args
.
dc
==
True
:
elif
args
.
dc
==
True
|
args
.
formality
==
True
:
compiled_filelist
.
append
(
"
set search_path [concat $search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
)
+
"
]
"
)
else
:
compiled_filelist
.
append
(
"
set search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
))
...
...
@@ -143,7 +143,7 @@ def read_list(filelist, first, incdirs, args):
else
:
if
args
.
genus
==
True
:
compiled_filelist
.
append
(
"
set_db init_hdl_search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
))
elif
args
.
dc
==
True
:
elif
args
.
dc
==
True
|
args
.
formality
==
True
:
compiled_filelist
.
append
(
"
set search_path [concat $search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
)
+
"
]
"
)
else
:
compiled_filelist
.
append
(
"
set search_path [ concat $search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
)
+
"
]
"
)
...
...
@@ -151,7 +151,7 @@ def read_list(filelist, first, incdirs, args):
if
first
==
True
:
if
args
.
genus
==
True
:
compiled_filelist
.
append
(
"
set_db init_hdl_search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
))
elif
args
.
dc
==
True
:
elif
args
.
dc
==
True
|
args
.
formality
==
True
:
compiled_filelist
.
append
(
"
set search_path [concat $search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
)
+
"
]
"
)
else
:
compiled_filelist
.
append
(
"
set search_path
"
+
str
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
)).
replace
(
"
$
"
,
"
$env
"
))
...
...
@@ -159,7 +159,7 @@ def read_list(filelist, first, incdirs, args):
else
:
if
args
.
genus
==
True
:
compiled_filelist
.
append
(
"
set_db init_hdl_search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
))
elif
args
.
dc
==
True
:
elif
args
.
dc
==
True
|
args
.
formality
==
True
:
compiled_filelist
.
append
(
"
set search_path [concat $search_path
"
+
str
(
env_var_substitute
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
),
tcl
=
True
)).
replace
(
"
$
"
,
"
$env
"
)
+
"
]
"
)
else
:
compiled_filelist
.
append
(
"
set search_path [ concat $search_path
"
+
str
(
line_list
[
0
].
lstrip
(
"
+incdir+
"
)).
replace
(
"
$
"
,
"
$env
"
)
+
"
]
"
)
...
...
@@ -230,6 +230,15 @@ def read_list(filelist, first, incdirs, args):
temp_str
+=
file
+
"
"
temp_str
+=
"
]
"
compiled_filelist
.
append
(
temp_str
)
elif
args
.
formality
==
True
:
if
hdl_files
[
0
].
endswith
(
"
.sv
"
):
temp_str
=
f
'
read_sverilog -r [list
'
else
:
temp_str
=
f
'
read_verilog -r [list
'
for
file
in
hdl_files
:
temp_str
+=
file
+
"
"
temp_str
+=
"
]
"
compiled_filelist
.
append
(
temp_str
)
else
:
temp_str
=
f
'
add_files -norecurse -force -copy_to
{
args
.
rtldir
}
"'
for
file
in
hdl_files
:
...
...
@@ -244,12 +253,13 @@ def incdir_compile(args, incdirs):
if
args
.
tcl
==
True
:
if
args
.
genus
==
False
:
if
args
.
dc
==
False
:
if
len
(
incdirs
)
>
0
:
temp_str
=
'
set_property include_dirs
"'
for
directory
in
incdirs
:
temp_dir
=
str
(
directory
).
replace
(
"
$
"
,
"
$env
"
)
temp_str
+=
"
"
+
temp_dir
temp_str
+=
'"
[current_fileset]
'
if
args
.
formality
==
False
:
if
len
(
incdirs
)
>
0
:
temp_str
=
'
set_property include_dirs
"'
for
directory
in
incdirs
:
temp_dir
=
str
(
directory
).
replace
(
"
$
"
,
"
$env
"
)
temp_str
+=
"
"
+
temp_dir
temp_str
+=
'"
[current_fileset]
'
elif
args
.
makefile
==
True
:
...
...
@@ -306,6 +316,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
"
-v
"
,
"
--vfiles
"
,
action
=
'
store_true
'
,
help
=
"
Generate a vc filelist
"
)
parser
.
add_argument
(
"
-n
"
,
"
--html
"
,
action
=
'
store_true
'
,
help
=
"
No
'
.sv
'
- strip files as HTML wont render
"
)
parser
.
add_argument
(
"
-r
"
,
"
--rtldir
"
,
type
=
str
,
help
=
"
Directory where RTL Source will be copied to in TCL mode
"
)
parser
.
add_argument
(
"
-F
"
,
"
--formality
"
,
action
=
'
store_true
'
,
help
=
"
Generate TCL script for formality
"
)
parser
.
add_argument
(
'
-d
'
,
'
--defines
'
,
nargs
=
'
+
'
,
default
=
[])
args
=
parser
.
parse_args
()
filelist_compile
(
args
)
This diff is collapsed.
Click to expand it.