mirror of https://github.com/YosysHQ/yosys.git
Add testcase where \init is copied
This commit is contained in:
parent
5cd3d3db0a
commit
dd317c9280
|
@ -48,3 +48,21 @@ design -import gate -as gate
|
||||||
|
|
||||||
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
||||||
sat -verify -prove-asserts -show-ports miter
|
sat -verify -prove-asserts -show-ports miter
|
||||||
|
|
||||||
|
|
||||||
|
design -reset
|
||||||
|
read_verilog -icells <<EOT
|
||||||
|
module top(input d, c, (* init = 1'b1 *) output reg q);
|
||||||
|
(* submod="bar" *) DFF s1(.D(d), .C(c), .Q(q));
|
||||||
|
endmodule
|
||||||
|
|
||||||
|
module DFF(input D, C, output Q);
|
||||||
|
parameter INIT = 1'b0;
|
||||||
|
endmodule
|
||||||
|
EOT
|
||||||
|
|
||||||
|
hierarchy -top top
|
||||||
|
|
||||||
|
submod
|
||||||
|
dffinit -ff DFF Q INIT
|
||||||
|
check -noinit -assert
|
||||||
|
|
Loading…
Reference in New Issue