Mitch Bailey
03/13/2024, 4:22 PMML_F3_TOP_mixed_subcut is the name of the cell that contains only subcut and I want to place that in ML_F3_TOP_mixed and then flatten it.
load ML_F3_TOP_mixed_subcut
load ML_F3_TOP_mixed
box values 0 0 0 0
getcell ML_F3_TOP_mixed_subcut
puts stdout [cellname children ML_F3_TOP_mixed]
flatten -doinplace ML_F3_TOP_mixed_subcut
puts stdout [cellname children ML_F3_TOP_mixed]
This is the output
Cell ML_F3_TOP_mixed's children are:
ML_F3_TOP_mixed_subcut
ML_F3_TOP_analog
ML_F3_TOP_digital
No cell use ML_F3_TOP_mixed_subcut found in edit cell.
Cell ML_F3_TOP_mixed's children are:
ML_F3_TOP_mixed_subcut
ML_F3_TOP_analog
ML_F3_TOP_digital
Isn’t the edit cell supposed to be the last cell loaded? In this case, ML_F3_TOP_mixed.
Do I need to save the cell once to generate the use line?Tim Edwards
03/13/2024, 4:41 PMflatten -doinplace is looking for a cell use, not a cell. You need to do flatten -doinplace ML_F3_TOP_mixed_subcut_0 .Mitch Bailey
03/13/2024, 5:06 PMload ML_F3_TOP_mixed
puts stdout [cellname self]
box values 0 0 0 0
getcell ML_F3_TOP_mixed_subcut
puts stdout [cellname children ML_F3_TOP_mixed]
load ML_F3_TOP_mixed
puts stdout [cellname self]
This is what is output
Cell ML_F3_TOP_mixed is currently loaded.
Cell ML_F3_TOP_mixed's children are:
ML_F3_TOP_mixed_subcut
ML_F3_TOP_analog
ML_F3_TOP_digital
Cell ML_F3_TOP_mixed_subcut is currently loaded.
I would expect the second cellname self to return ML_F3_TOP_mixed which was loaded immediately before the command.Tim Edwards
03/13/2024, 5:14 PMcellname self is preferring a selected cell (not sure if that was the intended behavior, but it's apparently the implemented behavior). Doing a "load" does not invalidate or remove any selection in another cell, so the subcut cell is still selected from doing getcell even after the following load. The best thing to do is just to follow load with select top cell.Mitch Bailey
03/13/2024, 5:32 PMMitch Bailey
03/14/2024, 11:18 PMgds flatten. So when I later read the single cell with only subcut, it was flattened out of existence. Then when I tried to load that cell, it created a new cell.