From 928b3a0a2a6e4d9d3414ca365141bb68e8c7cdef Mon Sep 17 00:00:00 2001 From: Damien Dupuis Date: Wed, 17 Nov 2010 15:39:03 +0000 Subject: [PATCH] Updated examples --- vlsisapd/examples/dtr/cplusplus/driveDtr.cpp | 2 +- vlsisapd/examples/dtr/cplusplus/parseDtr.cpp | 1 + vlsisapd/examples/dtr/example.dtr.xml | 2 +- vlsisapd/examples/dtr/python/driveDtr.py | 2 +- vlsisapd/examples/dtr/python/parseDtr.py | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vlsisapd/examples/dtr/cplusplus/driveDtr.cpp b/vlsisapd/examples/dtr/cplusplus/driveDtr.cpp index 85c38465..54248d0b 100644 --- a/vlsisapd/examples/dtr/cplusplus/driveDtr.cpp +++ b/vlsisapd/examples/dtr/cplusplus/driveDtr.cpp @@ -6,7 +6,7 @@ using namespace std; #include "vlsisapd/dtr/Name.h" int main(int argc, char * argv[]) { - DTR::Techno* techno = new DTR::Techno(DTR::Name("MyTech"), DTR::Name("micro")); + DTR::Techno* techno = new DTR::Techno(DTR::Name("MyTech"), DTR::Name("micro"), DTR::Name("rev.A")); techno->addRule (DTR::Name("transistorMinL"), 0.1 , DTR::Name("ref1")); techno->addRule (DTR::Name("transistorMinW"), 0.2 , DTR::Name("ref2")); diff --git a/vlsisapd/examples/dtr/cplusplus/parseDtr.cpp b/vlsisapd/examples/dtr/cplusplus/parseDtr.cpp index f760cc4d..2bcf2e4a 100644 --- a/vlsisapd/examples/dtr/cplusplus/parseDtr.cpp +++ b/vlsisapd/examples/dtr/cplusplus/parseDtr.cpp @@ -11,6 +11,7 @@ int main(int argc, char * argv[]) { cerr << "+-----------------------------+" << endl << "| technology: " << techno->getName().getString() << " |" << endl << "| units: " << techno->getUnit().getString() << " |" << endl + << "| version: " << techno->getVersion().getString() << " |" << endl << "+-----------------------------+" << endl << endl; cerr << "transistorMinL = " << techno->getValue(DTR::Name("transistorMinL")) << endl diff --git a/vlsisapd/examples/dtr/example.dtr.xml b/vlsisapd/examples/dtr/example.dtr.xml index fb0d5602..7c210178 100644 --- a/vlsisapd/examples/dtr/example.dtr.xml +++ b/vlsisapd/examples/dtr/example.dtr.xml @@ -1,4 +1,4 @@ - + diff --git a/vlsisapd/examples/dtr/python/driveDtr.py b/vlsisapd/examples/dtr/python/driveDtr.py index d2819f3b..d6f03b4a 100644 --- a/vlsisapd/examples/dtr/python/driveDtr.py +++ b/vlsisapd/examples/dtr/python/driveDtr.py @@ -1,6 +1,6 @@ from DTR import * -techno = Techno(Name("myTech"), Name("micro")) +techno = Techno(Name("myTech"), Name("micro"), Name("rev.A")) techno.addRule (Name("transistorMinL"), 0.1 , Name("ref1")) techno.addRule (Name("transistorMinW"), 0.2 , Name("ref2")) diff --git a/vlsisapd/examples/dtr/python/parseDtr.py b/vlsisapd/examples/dtr/python/parseDtr.py index 2252da58..8a86f9e9 100644 --- a/vlsisapd/examples/dtr/python/parseDtr.py +++ b/vlsisapd/examples/dtr/python/parseDtr.py @@ -6,6 +6,7 @@ techno = Techno.readFromFile("./example.dtr.xml") print "+-----------------------------+" print "| technology: "+techno.getName().getString()+" |" print "| units: "+techno.getUnit().getString()+" |" +print "| version: "+techno.getVersion().getString()+" |" print "+-----------------------------+\n\n" print "transistorMinL = %s"%techno.getValue(Name("transistorMinL"))