Updated examples
This commit is contained in:
parent
48407432c9
commit
928b3a0a2a
|
@ -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"));
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<technology name="example" unit="micro">
|
||||
<technology name="example" unit="micro" version="rev.A">
|
||||
<physical_rules>
|
||||
<!-- transistor -->
|
||||
<rule name="transistorMinL" value="0.10" ref="ref1"/>
|
||||
|
|
|
@ -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"))
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue