Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yosys-tests
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
yosys-tests
Commits
1a77264d
Commit
1a77264d
authored
Mar 03, 2018
by
Clifford Wolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix verific/sva/until test, Add verific/sva/until_trig
parent
9094d837
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
9 deletions
+100
-9
verific/sva/Makefile
+1
-1
verific/sva/until.sv
+8
-8
verific/sva/until_trig.sv
+91
-0
No files found.
verific/sva/Makefile
View file @
1a77264d
TESTS
:=
until
TESTS
:=
until
until_trig
all
:
$(addsuffix .status
,
$(TESTS))
touch .stamp
...
...
verific/sva/until.sv
View file @
1a77264d
...
...
@@ -26,10 +26,10 @@ module pass_00 (input clock);
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__----__________________________"
)
,
.
trace_c
(
"____----________________________"
)
,
.
trace_d
(
"_____
-
-_________________________"
)
.
trace_d
(
"_____
_
-_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until
D
[
*
2
]
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until
D
)
;
endmodule
module
fail_01
(
input
clock
)
;
...
...
@@ -40,10 +40,10 @@ module fail_01 (input clock);
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__----__________________________"
)
,
.
trace_c
(
"____----________________________"
)
,
.
trace_d
(
"____
-_-_
________________________"
)
.
trace_d
(
"____
___-
________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until
D
[
*
2
]
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until
D
)
;
endmodule
module
fail_02
(
input
clock
)
;
...
...
@@ -54,10 +54,10 @@ module fail_02 (input clock);
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__----__________________________"
)
,
.
trace_c
(
"____----________________________"
)
,
.
trace_d
(
"_____
-
-_________________________"
)
.
trace_d
(
"_____
_
-_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until_with
D
[
*
2
]
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until_with
D
)
;
endmodule
module
pass_03
(
input
clock
)
;
...
...
@@ -68,8 +68,8 @@ module pass_03 (input clock);
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__-----_________________________"
)
,
.
trace_c
(
"____-----_______________________"
)
,
.
trace_d
(
"_____
-
-_________________________"
)
.
trace_d
(
"_____
_
-_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until_with
D
[
*
2
]
)
;
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until_with
D
)
;
endmodule
verific/sva/until_trig.sv
0 → 100644
View file @
1a77264d
module
sequencer
#(
// 01234567890123456789012345678901
parameter
[
32
*
8
-
1
:
0
]
trace_a
=
"________________________________"
,
parameter
[
32
*
8
-
1
:
0
]
trace_b
=
"________________________________"
,
parameter
[
32
*
8
-
1
:
0
]
trace_c
=
"________________________________"
,
parameter
[
32
*
8
-
1
:
0
]
trace_d
=
"________________________________"
)
(
input
clock
,
output
A
,
B
,
C
,
D
)
;
integer
t
=
0
;
always
@
(
posedge
clock
)
t
<=
t
+
(
t
<
31
)
;
assign
A
=
trace_a
[
8
*
(
31
-
t
)
+:
8
]
==
"-"
;
assign
B
=
trace_b
[
8
*
(
31
-
t
)
+:
8
]
==
"-"
;
assign
C
=
trace_c
[
8
*
(
31
-
t
)
+:
8
]
==
"-"
;
assign
D
=
trace_d
[
8
*
(
31
-
t
)
+:
8
]
==
"-"
;
endmodule
module
pass_00
(
input
clock
)
;
wire
A
,
B
,
C
,
D
;
sequencer
#(
// 01234567890123456789012345678901
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__----__________________________"
)
,
.
trace_c
(
"____----________________________"
)
,
.
trace_d
(
"_____--_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
sequence
DD
;
D
[
*
2
]
;
endsequence
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until
DD
.
triggered
)
;
endmodule
module
fail_01
(
input
clock
)
;
wire
A
,
B
,
C
,
D
;
sequencer
#(
// 01234567890123456789012345678901
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__----__________________________"
)
,
.
trace_c
(
"____----________________________"
)
,
.
trace_d
(
"____-_-_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
sequence
DD
;
D
[
*
2
]
;
endsequence
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until
DD
.
triggered
)
;
endmodule
module
fail_02
(
input
clock
)
;
wire
A
,
B
,
C
,
D
;
sequencer
#(
// 01234567890123456789012345678901
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__----__________________________"
)
,
.
trace_c
(
"____----________________________"
)
,
.
trace_d
(
"_____--_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
sequence
DD
;
D
[
*
2
]
;
endsequence
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until_with
DD
.
triggered
)
;
endmodule
module
pass_03
(
input
clock
)
;
wire
A
,
B
,
C
,
D
;
sequencer
#(
// 01234567890123456789012345678901
.
trace_a
(
"_-______________________________"
)
,
.
trace_b
(
"__-----_________________________"
)
,
.
trace_c
(
"____-----_______________________"
)
,
.
trace_d
(
"_____--_________________________"
)
)
uut
(
clock
,
A
,
B
,
C
,
D
)
;
sequence
DD
;
D
[
*
2
]
;
endsequence
assert
property
(
@
(
posedge
clock
)
$
rose
(
A
)
|=>
B
##
2
C
until_with
DD
.
triggered
)
;
endmodule
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