-
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 test for continuous assignment to variable
SystemVerilog allows continous assignments to variables. This test exposes that inconsistent constraints get generated for this case. This replicates issue #635.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
regression/verilog/synthesis/continuous_assignment_to_variable_systemverilog2.desc
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 | ||
continuous_assignment_to_variable_systemverilog2.sv | ||
--bound 1 | ||
^\[main\.cover1\] cover 1: PROVED$ | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
-- | ||
This creates inconsistent constraints, which yields UNSAT. |
15 changes: 15 additions & 0 deletions
15
regression/verilog/synthesis/continuous_assignment_to_variable_systemverilog2.sv
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,15 @@ | ||
module main(input clk); | ||
|
||
bit state = 0; | ||
|
||
always_ff @(posedge clk) | ||
state = 1; | ||
|
||
logic data; | ||
|
||
// continuous assignment to variable | ||
assign data = state; | ||
|
||
cover1: cover property (@(posedge clk) (1)); | ||
|
||
endmodule |