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
a7874e1b
Commit
a7874e1b
authored
Nov 24, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test suite iverilog 11.0 compatibility
parent
260a6507
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
test/basic/flatten.sv
+9
-9
test/basic/flatten_tb.v
+1
-1
test/basic/flatten_three_tb.v
+1
-1
test/basic/unsigned.sv
+1
-1
test/basic/unsigned.v
+1
-1
test/lex/macro_iv.sv
+1
-1
No files found.
test/basic/flatten.sv
View file @
a7874e1b
...
...
@@ -6,15 +6,15 @@ module name(clock, in, out); \
initial
out
[
1
+
a
]
=
0
;
\
initial
out
[
2
+
a
]
=
0
;
\
always
@
(
posedge
clock
)
begin
\
$
display
($
time
,
`
" name @+ "
,
out
[
0
+
a
][
1
+
b
+:
1
])
;
\
$
display
($
time
,
`
" name @+ "
,
out
[
1
+
a
][
1
+
b
+:
1
])
;
\
$
display
($
time
,
`
" name @+ "
,
out
[
2
+
a
][
1
+
b
+:
1
])
;
\
$
display
($
time
,
`
" name @+ "
,
out
[
0
+
a
][
1
+
b
+:
2
])
;
\
$
display
($
time
,
`
" name @+ "
,
out
[
1
+
a
][
1
+
b
+:
2
])
;
\
$
display
($
time
,
`
" name @+ "
,
out
[
2
+
a
][
1
+
b
+:
2
])
;
\
$
display
($
time
,
`
" name @: "
,
out
[
0
+
a
][
1
+
b
:
1
+
b
])
;
\
$
display
($
time
,
`
" name @: "
,
out
[
1
+
a
][
1
+
b
:
1
+
b
])
;
\
$
display
($
time
,
`
" name @: "
,
out
[
2
+
a
][
1
+
b
:
1
+
b
])
;
\
$
display
($
time
,
`
" name @+
`
"
,
out
[
0
+
a
][
1
+
b
+:
1
])
;
\
$
display
($
time
,
`
" name @+
`
"
,
out
[
1
+
a
][
1
+
b
+:
1
])
;
\
$
display
($
time
,
`
" name @+
`
"
,
out
[
2
+
a
][
1
+
b
+:
1
])
;
\
$
display
($
time
,
`
" name @+
`
"
,
out
[
0
+
a
][
1
+
b
+:
2
])
;
\
$
display
($
time
,
`
" name @+
`
"
,
out
[
1
+
a
][
1
+
b
+:
2
])
;
\
$
display
($
time
,
`
" name @+
`
"
,
out
[
2
+
a
][
1
+
b
+:
2
])
;
\
$
display
($
time
,
`
" name @:
`
"
,
out
[
0
+
a
][
1
+
b
:
1
+
b
])
;
\
$
display
($
time
,
`
" name @:
`
"
,
out
[
1
+
a
][
1
+
b
:
1
+
b
])
;
\
$
display
($
time
,
`
" name @:
`
"
,
out
[
2
+
a
][
1
+
b
:
1
+
b
])
;
\
\
out
[
2
+
a
][
4
+
b
]
=
out
[
2
+
a
][
3
+
b
]
;
\
out
[
2
+
a
][
3
+
b
]
=
out
[
2
+
a
][
2
+
b
]
;
\
...
...
test/basic/flatten_tb.v
View file @
a7874e1b
...
...
@@ -8,7 +8,7 @@
initial
begin
\
for
(
tag
`
`i
=
0
;
tag
`
`i
<
20
;
tag
`
`i
++
)
begin
\
#
2
;
\
$
display
(
`
"tag"
,
$
time
,
": %h %15b %15b %15b %15b"
,
in
,
\
$
display
(
`
"tag
`
"
,
$
time
,
": %h %15b %15b %15b %15b"
,
in
,
\
tag
`
`one_out
,
tag
`
`two_out
,
tag
`
`thr_out
,
tag
`
`fou_out
)
;
\
end
\
end
...
...
test/basic/flatten_three_tb.v
View file @
a7874e1b
...
...
@@ -8,7 +8,7 @@
initial
begin
\
for
(
tag
`
`i
=
0
;
tag
`
`i
<
40
;
tag
`
`i
++
)
begin
\
#
2
;
\
$
display
(
`
"tag"
,
$
time
,
": %h %30b %30b %30b %30b"
,
in
,
\
$
display
(
`
"tag
`
"
,
$
time
,
": %h %30b %30b %30b %30b"
,
in
,
\
tag
`
`one_out
,
tag
`
`two_out
,
tag
`
`thr_out
,
tag
`
`fou_out
)
;
\
end
\
end
...
...
test/basic/unsigned.sv
View file @
a7874e1b
module
top
;
logic
[
3
:
0
]
arr
;
always_comb
initial
for
(
int
unsigned
i
=
0
;
i
<
4
;
i
++
)
arr
[
i
]
=
i
;
initial
$
display
(
arr
)
;
...
...
test/basic/unsigned.v
View file @
a7874e1b
module
top
;
reg
[
3
:
0
]
arr
;
always
@*
begin
:
block_name
initial
begin
:
block_name
integer
i
;
for
(
i
=
0
;
i
<
4
;
i
++
)
arr
[
i
]
=
i
;
...
...
test/lex/macro_iv.sv
View file @
a7874e1b
...
...
@@ -116,7 +116,7 @@
/* removed MACRO_E because iverlog performs escaping withing normal quotes */
`define
MACRO_F
(
t
)
$
display
(`"
s t
=
`\`"
t
`\`"")
;
`define
MACRO_F
(
t
)
$
display
(`"
s t
=
`\`"
t
`\`"
`
")
;
module
top
;
initial
begin
...
...
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