I am trying using SKILL script to build testbench from existing cell (with schematic and symbol). Then what I need to do is:
1. create new tb schematic from current cell; if current cellname is test, then the new schematic cell will be named test_tb
2. insert test's symbol in test_tb schematic.
3. insert power supply cell and other measurement cells
4. add wire to all instances terminals; give label to fixed ones, like vdd, vss, etc.
How can I do it?
By the way, I tried and now the only problem is how to add wire in right direction. You know, if terminal is on top, then I want to add vertical wire etc. I tried but did not have method to correctly caculate the edge of the symbol. If I use that of bBox, it is not correct, for if label is out of selection box, the bBox will be larger than selection box.
Thanks in advance.