coriolis/vlsisapd/examples/dtr/python/driveDtr.py

16 lines
523 B
Python
Raw Normal View History

from DTR import *
2010-06-15 03:58:29 -05:00
techno = Techno("myTech", "micro", "rev.A")
2010-06-15 03:58:29 -05:00
techno.addRule ("transistorMinL", 0.1 , "ref1")
techno.addRule ("transistorMinW", 0.2 , "ref2")
techno.addRule ("minWidth" , 0.15, "ref3", "metal1")
techno.addRule ("minSpacing" , 0.2 , "ref4", "metal1")
techno.addRule ("minSpacing" , 0.1 , "ref5", "active", "poly")
techno.addARule("minExtension" , 0.2 , "ref6", "poly", "active")
rule = techno.addRule("minArea", 0.1, "ref7", "metal1")
rule.setType("area")
2010-06-15 03:58:29 -05:00
techno.writeToFile("./out.dtr.xml")