mirror of https://github.com/YosysHQ/yosys.git
Add test from #1144, and try reading without '-specify' flag
This commit is contained in:
parent
af74409749
commit
dc677c791d
|
@ -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
|
||||
|
|
|
@ -54,3 +54,5 @@ equiv_struct
|
|||
equiv_induct -seq 5
|
||||
equiv_status -assert
|
||||
design -reset
|
||||
|
||||
read_verilog specify.v
|
||||
|
|
Loading…
Reference in New Issue