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

27 lines
1.3 KiB
C++
Raw Normal View History

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