Add test from #1144, and try reading without '-specify' flag

This commit is contained in:
Eddie Hung 2019-06-28 10:12:48 -07:00
parent af74409749
commit dc677c791d
2 changed files with 16 additions and 0 deletions

View File

@ -28,3 +28,17 @@ module test2 (
(B => Q) = 1.5;
endspecify
endmodule
module issue01144(input clk, d, output q);
specify
// Fails:
(posedge clk => (q +: d)) = (3,1);
(/*posedge*/ clk => (q +: d)) = (3,1);
(posedge clk *> (q +: d)) = (3,1);
(/*posedge*/ clk *> (q +: d)) = (3,1);
// Works:
(/*posedge*/ clk => q) = (3,1);
(/*posedge*/ clk *> q) = (3,1);
endspecify
endmodule

View File

@ -54,3 +54,5 @@ equiv_struct
equiv_induct -seq 5
equiv_status -assert
design -reset
read_verilog specify.v