mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-16 07:45:28 +00:00
Merge remote-tracking branch 'origin/eddie/submod_po' into xaig_dff
This commit is contained in:
commit
0806b8e398
2 changed files with 44 additions and 1 deletions
25
tests/various/submod.ys
Normal file
25
tests/various/submod.ys
Normal file
|
@ -0,0 +1,25 @@
|
|||
read_verilog <<EOT
|
||||
module top(input a, output [1:0] b);
|
||||
wire c;
|
||||
(* submod="bar" *) sub s1(a, c);
|
||||
assign b[0] = c;
|
||||
endmodule
|
||||
|
||||
module sub(input a, output c);
|
||||
assign c = a;
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
hierarchy -top top
|
||||
proc
|
||||
design -save gold
|
||||
|
||||
submod
|
||||
flatten
|
||||
design -stash gate
|
||||
|
||||
design -import gold -as gold
|
||||
design -import gate -as gate
|
||||
|
||||
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
||||
sat -verify -prove-asserts -show-ports miter
|
Loading…
Add table
Add a link
Reference in a new issue