3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-22 07:05:51 +00:00

Undo flatten -scopeinfo to -noscopeinfo

This commit is contained in:
Akash Levy 2025-04-22 16:32:22 -07:00
parent 4fad708795
commit e9bf25f333
3 changed files with 15 additions and 24 deletions

View file

@ -22,7 +22,7 @@ endmodule
EOT
hierarchy -top top
flatten -scopeinfo -scopename
flatten -scopename
prep
write_json json_scopeinfo.out

View file

@ -11,7 +11,7 @@ endmodule
EOT
hierarchy -top top
flatten -scopeinfo
flatten
select -assert-count 1 top/n:some_inst top/t:$scopeinfo %i
select -assert-count 1 top/n:some_inst top/r:TYPE=module %i
@ -46,7 +46,7 @@ endmodule
EOT
hierarchy -top top
flatten -scopeinfo
flatten
select -assert-count 2 top/t:$scopeinfo
select -assert-count 1 top/n:some_inst top/t:$scopeinfo %i
@ -87,11 +87,11 @@ endmodule
EOT
hierarchy -top top
flatten -scopeinfo top
flatten top
select -assert-count 1 top/t:$scopeinfo
setattr -mod -unset keep_hierarchy *
flatten -scopeinfo
flatten
select -assert-count 2 top/t:$scopeinfo
select -assert-count 1 top/n:some_inst top/t:$scopeinfo %i