diff --git a/chamsin/etc/technology.hcmos9.dtr.xml b/chamsin/etc/technology.hcmos9.dtr.xml index 437e9bb8..d8523d4a 100644 --- a/chamsin/etc/technology.hcmos9.dtr.xml +++ b/chamsin/etc/technology.hcmos9.dtr.xml @@ -1,5 +1,10 @@ + + + + + diff --git a/chamsin/src/analogic/Transistor.cpp b/chamsin/src/analogic/Transistor.cpp index 3bff2817..6696fd8d 100644 --- a/chamsin/src/analogic/Transistor.cpp +++ b/chamsin/src/analogic/Transistor.cpp @@ -193,9 +193,9 @@ void Transistor::createLayout() { DbU::Unit dx00 = _l; DbU::Unit dy00 = _w - y00*2; Box box00(x00, y00, dx00, dy00); + cerr << _w << endl; + cerr << box00 << endl; _grid00->setBoundingBox(box00); - Contact* contact = Contact::create(_grid, getLayer(techno, "metal1"), box00.getXCenter(), box00.getYCenter(), box00.getWidth(), box00.getHeight()); - Pad* pad = Pad::create(_grid, getLayer(techno, "metal1"), box00); //grid30 DbU::Unit maxValue = widthCut0 + 2*extPolyCut0; diff --git a/chamsin/src/technology/ATechnologyXmlParser.cpp b/chamsin/src/technology/ATechnologyXmlParser.cpp index a1a4eab4..11c5c73c 100644 --- a/chamsin/src/technology/ATechnologyXmlParser.cpp +++ b/chamsin/src/technology/ATechnologyXmlParser.cpp @@ -18,7 +18,6 @@ void syntaxError(const string& reason) { } DbU::Unit getUnitValue(double physicalValue) { - cerr << "akecoucou : " << DbU::getPhysicalsPerGrid() << endl; return DbU::grid(DbU::physicalToGrid(physicalValue, DbU::Micro)); } diff --git a/chamsin/src/tests/AnalogicTest.cpp b/chamsin/src/tests/AnalogicTest.cpp index 5fc0add6..80581915 100644 --- a/chamsin/src/tests/AnalogicTest.cpp +++ b/chamsin/src/tests/AnalogicTest.cpp @@ -36,7 +36,13 @@ int main(int argc, char* argv[]) { exit(56); } aTechnology->print(); - Transistor* trans = Transistor::create(userLibrary, Name("TEST"), Transistor::Polarity::P, 10, 10); + + DbU::Unit transistorMinL = aTechnology->getPhysicalRule("transistorMinL")->getValue(); + DbU::Unit transistorMinW = aTechnology->getPhysicalRule("transistorMinW")->getValue(); + + DbU::Unit L = transistorMinL; + DbU::Unit W = transistorMinW; + Transistor* trans = Transistor::create(userLibrary, Name("TEST"), Transistor::Polarity::P, L, W); trans->createLayout(); CellViewer* viewer = new CellViewer ( trans ); viewer->show();