Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
canbus
CTU CAN FD IP Core
Commits
5a4198e8
Commit
5a4198e8
authored
Mar 18, 2019
by
Martin Jeřábek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: reference: fix adding gui layout file
parent
25d65110
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
test/testfw/test_reference.py
test/testfw/test_reference.py
+3
-4
No files found.
test/testfw/test_reference.py
View file @
5a4198e8
...
...
@@ -26,13 +26,12 @@ class ReferenceTests(TestsBase):
def
configure
(
self
)
->
bool
:
tb
=
self
.
lib
.
get_test_benches
(
'*reference*'
)[
0
]
default
=
self
.
config
[
'default'
]
self
.
add_modelsim_gui_file
(
tb
,
default
,
'sanity'
)
tcl
=
self
.
build
/
'modelsim_init_reference.tcl'
with
tcl
.
open
(
'wt'
,
encoding
=
'utf-8'
)
as
f
:
print
(
dedent
(
'''
\
global TCOMP
set TCOMP i_test
set TCOMP
tb_reference_wrapper/
i_test
'''
),
file
=
f
)
init_files
=
get_common_modelsim_init_files
()
...
...
@@ -56,6 +55,6 @@ class ReferenceTests(TestsBase):
else
:
tb
.
add_config
(
data_set
,
generics
=
generics
)
tb
.
set_sim_option
(
"modelsim.init_files.after_load"
,
init_files
)
self
.
add_modelsim_gui_file
(
tb
,
cfg
,
data_set
,
init_files
)
tb
.
set_sim_option
(
"modelsim.init_files.after_load"
,
init_files
)
self
.
add_modelsim_gui_file
(
tb
,
default
,
'reference'
,
init_files
)
return
True
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