Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
6bc1fd80
Commit
6bc1fd80
authored
Jan 31, 2023
by
David Belohrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better handling of VUNit targets
parent
a69dfe21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
vunit.py
hdlmake/tools/vunit.py
+13
-7
No files found.
hdlmake/tools/vunit.py
View file @
6bc1fd80
...
...
@@ -100,12 +100,14 @@ class ToolVunitSim(MakefileSim):
converted_name
=
top_manifest
.
manifest_dict
.
get
(
'syn_family'
)
.
\
lower
()
.
replace
(
' '
,
''
)
.
strip
()
self
.
writeln
(
"""$(ALTERA_LIBS_COMPILED):
\t
@rm -rf ${ALTERA_STD_LIBS}
\t
@mkdir ${ALTERA_STD_LIBS}
\t
@quartus_sh --simlib_comp -tool
%
s -language verilog -family
%
s -directory ${ALTERA_STD_LIBS}
\t
@quartus_sh --simlib_comp -tool
%
s -language vhdl -family
%
s -directory ${ALTERA_STD_LIBS}
\t
@touch $(ALTERA_LIBS_COMPILED)
self
.
writeln
(
"""$(ALTERA_LIBS_COMPILED): sim_pre_cmd
\t
@if [ ! -f $(ALTERA_LIBS_COMPILED) ]; then
\\
\t\t
rm -rf ${ALTERA_STD_LIBS};
\\
\t\t
mkdir ${ALTERA_STD_LIBS};
\\
\t\t
quartus_sh --simlib_comp -tool
%
s -language verilog -family
%
s -directory ${ALTERA_STD_LIBS};
\\
\t\t
quartus_sh --simlib_comp -tool
%
s -language vhdl -family
%
s -directory ${ALTERA_STD_LIBS};
\\
\t\t
touch $(ALTERA_LIBS_COMPILED);
\\
fi
"""
%
(
top_manifest
.
manifest_dict
.
get
(
'tool'
),
converted_name
,
top_manifest
.
manifest_dict
.
get
(
'tool'
),
...
...
@@ -149,6 +151,7 @@ class ToolVunitSim(MakefileSim):
# installed with this package and already loaded -> no issue.
self
.
_makefile_sim_vunit
(
top_manifest
)
self
.
_makefile_compile_libs_vunit
(
top_manifest
)
self
.
_makefile_sim_command
()
self
.
_makefile_sim_clean_vunit
()
self
.
makefile_open_write_close
()
...
...
@@ -190,7 +193,9 @@ class ToolVunitSim(MakefileSim):
# makefile includes-or-not compilable targets
self
.
writeln
(
"""
all:
%
s
all:
%
s simulate sim_post_cmd
simulate:
\t
@${SIM_SCRIPT}
compile: mrproper
%
s
...
...
@@ -206,6 +211,7 @@ clean:
\t
@rm -rf ./vunit_out
\t
@rm -rf ./work
\t
@rm -rf ./modelsim.ini
\t
@rm -rf ./libraries
mrproper: clean
"""
)
...
...
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