2010-06-15 03:58:29 -05:00
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#include "vlsisapd/dtr/Techno.h"
|
|
|
|
#include "vlsisapd/dtr/Name.h"
|
|
|
|
|
|
|
|
int main(int argc, char * argv[]) {
|
|
|
|
DTR::Techno* techno = DTR::Techno::readFromFile("./example.dtr.xml");
|
|
|
|
|
|
|
|
cerr << "+-----------------------------+" << endl
|
|
|
|
<< "| technology: " << techno->getName().getString() << " |" << endl
|
|
|
|
<< "| units: " << techno->getUnit().getString() << " |" << endl
|
2010-11-17 09:39:03 -06:00
|
|
|
<< "| version: " << techno->getVersion().getString() << " |" << endl
|
2010-06-15 03:58:29 -05:00
|
|
|
<< "+-----------------------------+" << endl << endl;
|
|
|
|
|
|
|
|
cerr << "transistorMinL = " << techno->getValue(DTR::Name("transistorMinL")) << endl
|
|
|
|
<< "transistorMinW = " << techno->getValueAsString(DTR::Name("transistorMinW")) << endl
|
|
|
|
<< "minWidth of metal1 = " << techno->getValue(DTR::Name("minWidth"), DTR::Name("metal1")) << endl
|
|
|
|
<< "minSpacing of metal1 = " << techno->getValue(DTR::Name("minWidth"), DTR::Name("metal1")) << endl
|
|
|
|
<< "minSpacing of active vs poly = " << techno->getValue(DTR::Name("minSpacing"), DTR::Name("active"), DTR::Name("poly")) << endl
|
|
|
|
<< "minExtension active over poly = " << techno->getValue(DTR::Name("minExtension"), DTR::Name("poly"), DTR::Name("active")) << endl
|
|
|
|
<< "minArea of metal1 = " << techno->getValue(DTR::Name("minArea"), DTR::Name("metal1")) << endl;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|