3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-09 17:31:59 +00:00

sdc: add -keep_hierarchy test

This commit is contained in:
Emil J. Tywoniak 2025-10-08 12:51:56 +02:00
parent e341bbb80d
commit dead2aa03f
8 changed files with 157 additions and 5 deletions

14
tests/sdc/alu_sub.ys Normal file
View file

@ -0,0 +1,14 @@
read_verilog alu_sub.v
proc
hierarchy -auto-top
select -assert-mod-count 1 adder
select -assert-mod-count 1 wrapper
select -assert-mod-count 1 alu
sdc -keep_hierarchy alu_sub.sdc
flatten
select -assert-mod-count 0 adder
select -assert-mod-count 1 wrapper
select -assert-mod-count 1 alu