-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KNOWNBUG tests for Verilog logical and case equality.
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
KNOWNBUG | ||
equality1.v | ||
--bound 0 | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- | ||
Missing Verilog case equality implementation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module main; | ||
|
||
always assert property01: (10==10)===1; | ||
always assert property02: (10==20)===0; | ||
always assert property03: (10!=20)===1; | ||
always assert property04: (10==20)===0; | ||
always assert property05: ('bx==10)==='bx; | ||
always assert property06: ('bz==20)==='bx; | ||
always assert property07: ('bx!=10)==='bx; | ||
always assert property08: ('bz!=20)==='bx; | ||
always assert property09: ('sb1=='b11)===0; // zero extension | ||
always assert property10: ('sb1=='sb11)===1; // sign extension | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
KNOWNBUG | ||
equality2.v | ||
--bound 0 | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- | ||
Missing Verilog case equality implementation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module main; | ||
|
||
always assert property01: (10===10)==1; | ||
always assert property02: (10===20)==0; | ||
always assert property03: (10!==10)==1; | ||
always assert property04: (10!==20)==0; | ||
always assert property05: ('bx==='bx)==1; | ||
always assert property06: ('bz==='bz)==1; | ||
always assert property07: ('bx==='bz)==0; | ||
always assert property08: ('bx==='b1)==0; | ||
always assert property09: ('bz==='b1)==0; | ||
always assert property10: ('b1==='b01)==1; // zero extension | ||
always assert property11: ('b1==='sb11)==0; // zero extension | ||
always assert property12: ('sb1==='sb11)==1; // sign extension | ||
|
||
endmodule |