mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
Merge remote-tracking branch 'origin/eddie/submod_po' into xaig_dff
This commit is contained in:
commit
6338615aa1
2 changed files with 94 additions and 49 deletions
|
@ -1,8 +1,8 @@
|
|||
read_verilog <<EOT
|
||||
module top(input a, output [1:0] b);
|
||||
module top(input a, output b);
|
||||
wire c;
|
||||
(* submod="bar" *) sub s1(a, c);
|
||||
assign b[0] = c;
|
||||
assign b = c;
|
||||
endmodule
|
||||
|
||||
module sub(input a, output c);
|
||||
|
@ -48,3 +48,24 @@ design -import gate -as gate
|
|||
|
||||
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
||||
sat -verify -prove-asserts -show-ports miter
|
||||
|
||||
|
||||
design -reset
|
||||
read_verilog -icells <<EOT
|
||||
module top(input d, c, (* init = 3'b011 *) output reg [2:0] q);
|
||||
(* submod="bar" *) DFF s1(.D(d), .C(c), .Q(q[1]));
|
||||
DFF s2(.D(d), .C(c), .Q(q[0]));
|
||||
DFF s3(.D(d), .C(c), .Q(q[2]));
|
||||
endmodule
|
||||
|
||||
module DFF(input D, C, output Q);
|
||||
parameter INIT = 1'b0;
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
hierarchy -top top
|
||||
proc
|
||||
|
||||
submod
|
||||
dffinit -ff DFF Q INIT
|
||||
check -noinit -assert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue