2010-07-14 07:11:00 -05:00
|
|
|
from DTR import *
|
2010-06-15 03:58:29 -05:00
|
|
|
|
2012-03-26 10:39:08 -05:00
|
|
|
techno = Techno("myTech", "micro", "rev.A")
|
2010-06-15 03:58:29 -05:00
|
|
|
|
2012-03-26 10:39:08 -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")
|
2010-06-15 06:29:44 -05:00
|
|
|
|
2012-03-26 10:39:08 -05:00
|
|
|
rule = techno.addRule("minArea", 0.1, "ref7", "metal1")
|
|
|
|
rule.setType("area")
|
2010-06-15 03:58:29 -05:00
|
|
|
|
|
|
|
techno.writeToFile("./out.dtr.xml")
|