Debian Codegraph @

tests/inputs/ChangeProperties.il

raw
1 ;; This is SKILL
2 ;; https://www.mics.ece.vt.edu/ICDesign/Tutorials/Cadence/layout_pg5.html
3
4 /*
5 This procedure will change the bulk node values of nfet3 and pfet3
6 to be vss! and vdd!, respectively.
7 */
8
9 procedure(cb(lib cell)
10 ;let will allow you to access the cv and newlabel variables outside
11 ;of this procedure
12 let((cv newLabel)
13 ;open the cellview as a database object and assign it to cv
14 cv = dbOpenCellViewByType(lib cell "schematic" "" "a")
15 ;for loop to go through all instances in this cellview
16 foreach(instancecv~>instances
17 ;open the property window -- this will display the window!
18 geSelectObjectNoFilter(instance)
19 schHiObjectProperty()
20 ;check the cellname and change the bulk node (bn) property
21 if(schObjPropForm->cellName->value == "nfet3"
22 then
23 schObjPropForm->bn->value = "vss!"
24 if(schObjPropForm->cellName->value == "pfet3"
25 then
26 schObjPropForm->bn->value = "vdd!"
27 ;close the form
28 hiFormDone(schObjPropForm)
29 geDeselectAll()
30 );end foreach
31 );end of let
32 );end procedure