/* the only reason i avoid the usual name "lambda" in favor of
* "quantum" is that "lambda" is a reserved skill keyword that vim
* highlights, and i don't want to see it highlighted everywhere...
* */
bag = dbOpenBag( ddGetObj( tf~>libName ) "r" )
prop = dbFindProp( bag "minLength" )
quantum = prop->value / 2
dbCloseBag( bag )
deep = rindex( techGetParam( tf "technology" ) "DEEP" )
if( deep == "DEEP"
then
viaSize = 3 * quantum
else
viaSize = 2 * quantum
)
/* via-via spacing */
viaSpacing = techGetSpacingRule( tf "minSpacing" "via" )
/* m1 enclosure of via */
m1ViaEnc = techGetOrderedSpacingRule( tf "minEnclosure" "metal1" "via" )
/* m2 enclosure of via */
m2ViaEnc = techGetOrderedSpacingRule( tf "minEnclosure" "metal2" "via" )