Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
0e5aa57d
Commit
0e5aa57d
authored
1 year ago
by
Mikael Henriksson
Browse files
Options
Downloads
Patches
Plain Diff
Make VUnit VHDL-tests working directory insensitive, closes
#197
parent
98df396f
No related branches found
Branches containing commit
No related tags found
1 merge request
!294
Make VUnit VHDL-tests working directory insensitive, closes #197
Pipeline
#94332
passed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/codegen/testbench/test.py
+8
-2
8 additions, 2 deletions
b_asic/codegen/testbench/test.py
with
8 additions
and
2 deletions
b_asic/codegen/testbench/test.py
+
8
−
2
View file @
0e5aa57d
#!/usr/bin/env python3
from
os.path
import
abspath
,
dirname
from
sys
import
argv
from
vunit
import
VUnit
vu
=
VUnit
.
from_argv
()
# Absolute path of the testbench directory
testbench_path
=
dirname
(
abspath
(
__file__
))
vu
=
VUnit
.
from_argv
(
argv
=
[
'
--output-path
'
,
f
'
{
testbench_path
}
/vunit_out
'
]
+
argv
[
1
:])
lib
=
vu
.
add_library
(
"
lib
"
)
lib
.
add_source_files
(
[
"
*.vhdl
"
,
f
'
{
testbench_path
}
/
*.vhdl
'
,
]
)
lib
.
set_compile_option
(
"
modelsim.vcom_flags
"
,
[
"
-2008
"
])
...
...
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