Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
b59c6603
Commit
b59c6603
authored
Apr 23, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test runner checks for iverilog warnings
parent
dce92405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test/lib/runner.sh
+8
-2
No files found.
test/lib/runner.sh
View file @
b59c6603
...
@@ -17,14 +17,20 @@ simulate() {
...
@@ -17,14 +17,20 @@ simulate() {
sim_top
=
"
$1
"
;
shift
sim_top
=
"
$1
"
;
shift
# compile the files
# compile the files
sim_prog
=
"
$SHUNIT_TMPDIR
/simprog.exe"
sim_prog
=
"
$SHUNIT_TMPDIR
/simprog.exe"
iverilog
\
iv_output
=
`
iverilog
\
-Wall
\
-Wno-select-range
\
-o
"
$sim_prog
"
\
-o
"
$sim_prog
"
\
-g2005
\
-g2005
\
-DTEST_VCD
=
"
\"
$sim_vcd
\"
"
\
-DTEST_VCD
=
"
\"
$sim_vcd
\"
"
\
-DTEST_TOP
=
$sim_top
\
-DTEST_TOP
=
$sim_top
\
"
$SCRIPT_DIR
/tb_dumper.v"
\
"
$SCRIPT_DIR
/tb_dumper.v"
\
"
$@
"
"
$@
"
2>&1
`
assertTrue
"iverilog on
$1
failed"
$?
assertTrue
"iverilog on
$1
failed"
$?
assertNull
"iverilog emitted warnings:"
"
$iv_output
"
if
[
"
$iv_output
"
!=
""
]
;
then
echo
"
$iv_output
"
fi
# run the simulation
# run the simulation
$sim_prog
>
$sim_log
$sim_prog
>
$sim_log
assertTrue
"simulating
$1
failed"
$?
assertTrue
"simulating
$1
failed"
$?
...
...
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