mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
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;
|
(B => Q) = 1.5;
|
||||||
endspecify
|
endspecify
|
||||||
endmodule
|
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_induct -seq 5
|
||||||
equiv_status -assert
|
equiv_status -assert
|
||||||
design -reset
|
design -reset
|
||||||
|
|
||||||
|
read_verilog specify.v
|
||||||
|
|
Loading…
Reference in a new issue