coriolis/deprecated/vlsisapd/examples/dtr/cplusplus/driveDtr.cpp

25 lines
766 B
C++
Raw Normal View History

2010-06-15 03:58:29 -05:00
#include <string>
using namespace std;
#include "vlsisapd/dtr/Techno.h"
#include "vlsisapd/dtr/Rules.h"
int main(int argc, char * argv[]) {
DTR::Techno* techno = new DTR::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");
2010-06-15 03:58:29 -05:00
DTR::Rule* rule = techno->addRule("minArea", 0.1, "ref7", "metal1");
rule->setType("area");
2010-06-15 03:58:29 -05:00
techno->writeToFile("./out.dtr.xml");
return 0;
}