Fix tests/various/specify.v

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-07-03 11:25:05 +02:00
parent ba36567908
commit 1f173210eb
2 changed files with 3 additions and 8 deletions

View File

@ -7,9 +7,11 @@ module test (
if (EN) Q <= D;
specify
`ifndef SKIP_UNSUPPORTED_IGN_PARSER_CONSTRUCTS
if (EN) (posedge CLK *> (Q : D)) = (1, 2:3:4);
$setup(D, posedge CLK &&& EN, 5);
$hold(posedge CLK, D &&& EN, 6);
`endif
endspecify
endmodule
@ -31,14 +33,7 @@ endmodule
module issue01144(input clk, d, output q);
specify
// Fails:
(posedge clk => (q +: d)) = (3,1);
//(/*posedge*/ clk => (q +: d)) = (3,1); // Invalid syntax
(posedge clk *> (q +: d)) = (3,1);
//(/*posedge*/ clk *> (q +: d)) = (3,1); // Invalid syntax
// Works:
(/*posedge*/ clk => q) = (3,1);
(/*posedge*/ clk *> q) = (3,1);
endspecify
endmodule

View File

@ -55,4 +55,4 @@ equiv_induct -seq 5
equiv_status -assert
design -reset
read_verilog specify.v
read_verilog -DSKIP_UNSUPPORTED_IGN_PARSER_CONSTRUCTS specify.v