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
16c63b81
Commit
16c63b81
authored
Dec 03, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test coverage for wildcard inequality
parent
5c0f414d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
test/basic/inside_exhaust.sv
+5
-0
test/basic/inside_exhaust.v
+5
-0
test/basic/inside_exhaust.vh
+2
-0
No files found.
test/basic/inside_exhaust.sv
View file @
16c63b81
...
@@ -7,6 +7,11 @@ module Suite;
...
@@ -7,6 +7,11 @@ module Suite;
return
x
==?
y
;
return
x
==?
y
;
endfunction
endfunction
function
[
0
:
0
]
test_wne
;
input
[
WIDTH
-
1
:
0
]
x
,
y
;
return
x
!=?
y
;
endfunction
function
[
0
:
0
]
test_inside
;
function
[
0
:
0
]
test_inside
;
input
[
WIDTH
-
1
:
0
]
x
,
y
,
z
;
input
[
WIDTH
-
1
:
0
]
x
,
y
,
z
;
return
x
inside
{
y
,
z
};
return
x
inside
{
y
,
z
};
...
...
test/basic/inside_exhaust.v
View file @
16c63b81
...
@@ -20,6 +20,11 @@ module Suite;
...
@@ -20,6 +20,11 @@ module Suite;
end
end
endfunction
endfunction
function
[
0
:
0
]
test_wne
;
input
[
WIDTH
-
1
:
0
]
x
,
y
;
test_wne
=
!
test_weq
(
x
,
y
)
;
endfunction
function
[
0
:
0
]
test_inside
;
function
[
0
:
0
]
test_inside
;
input
[
WIDTH
-
1
:
0
]
x
,
y
,
z
;
input
[
WIDTH
-
1
:
0
]
x
,
y
,
z
;
test_inside
=
|{
test_weq
(
x
,
y
)
,
test_weq
(
x
,
z
)
};
test_inside
=
|{
test_weq
(
x
,
y
)
,
test_weq
(
x
,
z
)
};
...
...
test/basic/inside_exhaust.vh
View file @
16c63b81
...
@@ -32,6 +32,8 @@ initial begin : x
...
@@ -32,6 +32,8 @@ initial begin : x
for (j = 0; j < 4**WIDTH; ++j) begin
for (j = 0; j < 4**WIDTH; ++j) begin
$display("%b ==? %b = 1'b%b",
$display("%b ==? %b = 1'b%b",
a, b, test_weq(a, b));
a, b, test_weq(a, b));
$display("%b !=? %b = 1'b%b",
a, b, test_wne(a, b));
for (k = 0; k < 4**WIDTH; ++k) begin
for (k = 0; k < 4**WIDTH; ++k) begin
$display("%b inside {%b, %b} = 1'b%b",
$display("%b inside {%b, %b} = 1'b%b",
a, b, c, test_inside(a, b, c));
a, b, c, test_inside(a, b, c));
...
...
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