oaLayerConstraint down ... :-P

This commit is contained in:
Jean-Manuel Caba 2010-08-16 11:08:47 +00:00
parent b6048dab6f
commit 15e6d4a452
2 changed files with 21 additions and 43 deletions

View File

@ -1,5 +1,5 @@
// -*-compile-command:"cd ../../../../.. && make"-*- // -*-compile-command:"cd ../../../../.. && make"-*-
// Time-stamp: "2010-08-13 18:02:10" - OpenAccessDriver.cpp // Time-stamp: "2010-08-16 13:05:27" - OpenAccessDriver.cpp
// x-----------------------------------------------------------------x // x-----------------------------------------------------------------x
// | This file is part of the hurricaneAMS Software. | // | This file is part of the hurricaneAMS Software. |
// | Copyright (c) UPMC/LIP6 2008-2010, All Rights Reserved | // | Copyright (c) UPMC/LIP6 2008-2010, All Rights Reserved |
@ -283,48 +283,25 @@ namespace {
_layer2OALayer[layer] = aOALayer; _layer2OALayer[layer] = aOALayer;
#if 0 //create and add layer constraint for Layer specific manufacturing rules
//create and add layer constraint for Layer specific manufacturing rules cerr << " o get value for constraint" << endl;
cerr << " o get value for constraint" << endl; long minSize = Hurricane::DbU::getDb(layer->getMinimalSize());
long minSize = Hurricane::DbU::getDb(layer->getMinimalSize()); long minSpace = Hurricane::DbU::getDb(layer->getMinimalSpacing());
long minSpace = Hurricane::DbU::getDb(layer->getMinimalSpacing()); long pitch = Hurricane::DbU::getDb(layer->getPitch());
long pitch = Hurricane::DbU::getDb(layer->getPitch()); oaLayerConstraint* cMinSize = oaLayerConstraint::create(aOALayer->getNumber(),
oaLayerConstraintDef::get(oacMinWidth),
oaIntValue::create(theOATech,minSize));
cerr << " o create constraint for min size : " << pitch << endl; oaLayerConstraint* cMinSpace = oaLayerConstraint::create(aOALayer->getNumber(),
oaLayerConstraint* cMinSize = NULL; oaLayerConstraintDef::get(oacMinSpacing),
try{ oaIntValue::create(theOATech,minSpace));
cMinSize = oaLayerConstraint::create(aOALayer->getNumber(), oaLayerConstraint* cPitchH = oaLayerConstraint::create(aOALayer->getNumber(),
oaLayerConstraintDef::get(oacMinSize), oaLayerConstraintDef::get(oacHorizontalRouteGridPitch),
oaIntValue::create(theOATech,500)); oaIntValue::create(theOATech,pitch));
}catch(oaException& e){ oaLayerConstraint* cPitchV = oaLayerConstraint::create(aOALayer->getNumber(),
cerr << "ERROR oaLayer: " << e.getMsg() << endl; oaLayerConstraintDef::get(oacVerticalRouteGridPitch),
exit(-2); oaIntValue::create(theOATech,pitch));
}catch(...){ return aOALayer;
cerr << "ERROR oaLayer: [UNKNOWN]" << endl;
exit(-1);
} }
assert(cMinSize);
cerr << " o create constraint for min space" << endl;
oaLayerConstraint* cMinSpace = oaLayerConstraint::create(aOALayer->getNumber(),
oaLayerConstraintDef::get(oacMinSpacing),
oaIntValue::create(theOATech->getLib(),minSpace));
assert(cMinSpace);
cerr << " o create constraint for pitchH" << endl;
oaLayerConstraint* cPitchH = oaLayerConstraint::create(aOALayer->getNumber(),
oaLayerConstraintDef::get(oacHorizontalRouteGridPitch),
oaIntValue::create(theOATech->getLib(),pitch));
assert(cPitchH);
cerr << " o create constraint for pitchV" << endl;
oaLayerConstraint* cPitchV = oaLayerConstraint::create(aOALayer->getNumber(),
oaLayerConstraintDef::get(oacVerticalRouteGridPitch),
oaIntValue::create(theOATech->getLib(),pitch));
assert(cPitchV);
#endif
return aOALayer;
}
/** /**
create a oaTech from a Hurricane::Technology in it's Library create a oaTech from a Hurricane::Technology in it's Library

View File

@ -1,6 +1,7 @@
TESTDIR= ./testOA TESTDIR= ./testOA
TECHNOFILE= /dsk/l1/misc/caba/coriolis-2.x/Linux.SLSoC5x/Release.Shared/install/etc/chams/config.freePDK45.xml #TECHNOFILE= /dsk/l1/misc/caba/coriolis-2.x/Linux.SLSoC5x/Release.Shared/install/etc/chams/config.freePDK45.xml
TECHNOFILE= /dsk/l1/misc/caba/coriolis-2.x/Linux.SLSoC5x_64/Release.Shared/install/etc/chams/config.freePDK45.xml
M=$$(uname -m) M=$$(uname -m)
all: compile lefTest run all: compile lefTest run