mirror of
https://github.com/YosysHQ/yosys
synced 2026-08-04 13:23:35 +00:00
Merge pull request #6078 from YosysHQ/emil/hierarchy-fix-keep-cache
hierarchy: fix keep cache usage by caching false too
This commit is contained in:
commit
468ba27d91
3 changed files with 48 additions and 14 deletions
3
tests/various/hierarchy_recursive.v
Normal file
3
tests/various/hierarchy_recursive.v
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module top(input x, output y);
|
||||
top top_i(.x(x), .y(y));
|
||||
endmodule
|
||||
25
tests/various/hierarchy_recursive.ys
Normal file
25
tests/various/hierarchy_recursive.ys
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
read_verilog hierarchy_recursive.v
|
||||
hierarchy -auto-top
|
||||
select -assert-any top
|
||||
select -assert-none a:keep
|
||||
|
||||
design -reset
|
||||
read_verilog <<EOT
|
||||
module top(input x, output y);
|
||||
top top_i(.x(x), .y(y));
|
||||
always @(x) $display("x=%d", x);
|
||||
endmodule
|
||||
EOT
|
||||
hierarchy -auto-top
|
||||
select -assert-any top %% a:keep
|
||||
|
||||
design -reset
|
||||
read_verilog -formal <<EOT
|
||||
module a(input x); b b_i(.x(x)); endmodule
|
||||
module b(input x); a a_i(.x(x)); always @(x) assert (x == x); endmodule
|
||||
module top(input x); a a_i(.x(x)); endmodule
|
||||
EOT
|
||||
hierarchy -top top
|
||||
select -assert-any a %% a:keep
|
||||
select -assert-any b %% a:keep
|
||||
select -assert-any top %% a:keep
|
||||
Loading…
Add table
Add a link
Reference in a new issue