oaLayerConstraint down ... :-P
This commit is contained in:
parent
b6048dab6f
commit
15e6d4a452
|
@ -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,46 +283,23 @@ 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),
|
||||||
cerr << " o create constraint for min size : " << pitch << endl;
|
oaIntValue::create(theOATech,minSize));
|
||||||
oaLayerConstraint* cMinSize = NULL;
|
|
||||||
try{
|
|
||||||
cMinSize = oaLayerConstraint::create(aOALayer->getNumber(),
|
|
||||||
oaLayerConstraintDef::get(oacMinSize),
|
|
||||||
oaIntValue::create(theOATech,500));
|
|
||||||
}catch(oaException& e){
|
|
||||||
cerr << "ERROR oaLayer: " << e.getMsg() << endl;
|
|
||||||
exit(-2);
|
|
||||||
}catch(...){
|
|
||||||
cerr << "ERROR oaLayer: [UNKNOWN]" << endl;
|
|
||||||
exit(-1);
|
|
||||||
}
|
|
||||||
assert(cMinSize);
|
|
||||||
cerr << " o create constraint for min space" << endl;
|
|
||||||
oaLayerConstraint* cMinSpace = oaLayerConstraint::create(aOALayer->getNumber(),
|
oaLayerConstraint* cMinSpace = oaLayerConstraint::create(aOALayer->getNumber(),
|
||||||
oaLayerConstraintDef::get(oacMinSpacing),
|
oaLayerConstraintDef::get(oacMinSpacing),
|
||||||
oaIntValue::create(theOATech->getLib(),minSpace));
|
oaIntValue::create(theOATech,minSpace));
|
||||||
assert(cMinSpace);
|
|
||||||
cerr << " o create constraint for pitchH" << endl;
|
|
||||||
oaLayerConstraint* cPitchH = oaLayerConstraint::create(aOALayer->getNumber(),
|
oaLayerConstraint* cPitchH = oaLayerConstraint::create(aOALayer->getNumber(),
|
||||||
oaLayerConstraintDef::get(oacHorizontalRouteGridPitch),
|
oaLayerConstraintDef::get(oacHorizontalRouteGridPitch),
|
||||||
oaIntValue::create(theOATech->getLib(),pitch));
|
oaIntValue::create(theOATech,pitch));
|
||||||
assert(cPitchH);
|
|
||||||
|
|
||||||
cerr << " o create constraint for pitchV" << endl;
|
|
||||||
oaLayerConstraint* cPitchV = oaLayerConstraint::create(aOALayer->getNumber(),
|
oaLayerConstraint* cPitchV = oaLayerConstraint::create(aOALayer->getNumber(),
|
||||||
oaLayerConstraintDef::get(oacVerticalRouteGridPitch),
|
oaLayerConstraintDef::get(oacVerticalRouteGridPitch),
|
||||||
oaIntValue::create(theOATech->getLib(),pitch));
|
oaIntValue::create(theOATech,pitch));
|
||||||
assert(cPitchV);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return aOALayer;
|
return aOALayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue