James

Super-Simple TVF example

Discussion created by James on Jul 28, 2008
Latest reply on Jul 30, 2008 by karen_chow

For those who may be new to TVF, here is a super-simple example to get you started. This example will write out the data on GDS layer numbers specified in the function call simple_layer below.

#! tvf

tvf::VERBATIM {
LAYOUT PATH "./test.gds"
LAYOUT PRIMARY "top"
LAYOUT SYSTEM GDSII

PRECISION 1000

DRC MAXIMUM RESULTS ALL
DRC RESULTS DATABASE "./test.rve" ASCII
}

proc simple_layer { layers } {
     foreach lay $layers {
         set lname sl_$lay
          tvf::LAYER $lname $lay
          tvf::RULECHECK COPY_LAY_$lay { eval {tvf::@} Copy of layer $lay
          tvf::OUTPUT "COPY $lname"
          }
     }
}

simple_layer { 1 2 3 4 5 }

Outcomes