mirror of https://github.com/YosysHQ/yosys.git
Fix tests/various/specify.v
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
ba36567908
commit
1f173210eb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue