Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Verilog: fix for the type of implicit nets for continous assignments
* SystemVerilog: fix for type parameters
* SystemVerilog: type parameter ports
* SystemVerilog: fix for checkers with multiple ports
* SMV: word constants
* SMV: IVAR declarations
* SMV: bit selection operator
Expand Down
7 changes: 7 additions & 0 deletions regression/verilog/checker/checker7.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CORE
checker7.sv
--bound 20
^\[main\.c\.assert\.1\] always myChecker\.data1 != myChecker\.data2: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
9 changes: 9 additions & 0 deletions regression/verilog/checker/checker7.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
checker myChecker(input logic [31:0] data1, input logic [31:0] data2);
assert property (data1 != data2);
endchecker

module main(input clk);
reg [31:0] counter = 0;
always_ff @(posedge clk) counter++;
myChecker c(counter, 10);
endmodule
4 changes: 2 additions & 2 deletions src/verilog/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ checker_port_list_opt:
checker_port_list:
checker_port_item
{ init($$); mts($$, $1); }
| checker_port_list checker_port_item
{ $$ = $1; mts($$, $2); }
| checker_port_list ',' checker_port_item
{ $$ = $1; mts($$, $3); }
;

checker_port_item:
Expand Down
Loading