OpenUpdateSession() -> UpdateSession::open()
This commit is contained in:
parent
b774770407
commit
3c29aeb489
|
@ -311,7 +311,7 @@ void GenV1Trans::Calculate(Transistor* transistor)
|
||||||
void GenV1Trans::Generate(Transistor* transistor)
|
void GenV1Trans::Generate(Transistor* transistor)
|
||||||
// *********************************************
|
// *********************************************
|
||||||
{
|
{
|
||||||
openUpdateSession();
|
UpdateSession::open();
|
||||||
|
|
||||||
Net* source = transistor->getNet(Name(transistor->getSourceName()));
|
Net* source = transistor->getNet(Name(transistor->getSourceName()));
|
||||||
Net* drain = transistor->getNet(Name(transistor->getDrainName()) );
|
Net* drain = transistor->getNet(Name(transistor->getDrainName()) );
|
||||||
|
@ -472,7 +472,7 @@ END_IF
|
||||||
// End Generation.
|
// End Generation.
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
|
|
||||||
closeUpdateSession();
|
UpdateSession::close();
|
||||||
|
|
||||||
// Set Transistor::_mapNet2Box.
|
// Set Transistor::_mapNet2Box.
|
||||||
// ****************************
|
// ****************************
|
||||||
|
|
|
@ -77,7 +77,6 @@ void MetaTransistor::createConnection()
|
||||||
void MetaTransistor::createLayout()
|
void MetaTransistor::createLayout()
|
||||||
// ********************************
|
// ********************************
|
||||||
{
|
{
|
||||||
// OpenUpdateSession();
|
|
||||||
|
|
||||||
if((_le == 0.0) || (_we == 0.0)) {
|
if((_le == 0.0) || (_we == 0.0)) {
|
||||||
throw Error("Can't generate layout : " + getString(this) + " hasn't been dimensionned");
|
throw Error("Can't generate layout : " + getString(this) + " hasn't been dimensionned");
|
||||||
|
@ -132,7 +131,6 @@ void MetaTransistor::createLayout()
|
||||||
|
|
||||||
|
|
||||||
materialize();
|
materialize();
|
||||||
// CloseUpdateSession();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,14 +138,14 @@ void MetaTransistor::createLayout()
|
||||||
void MetaTransistor::Flush()
|
void MetaTransistor::Flush()
|
||||||
// *************************
|
// *************************
|
||||||
{
|
{
|
||||||
openUpdateSession();
|
UpdateSession::open();
|
||||||
for_each_instance(instance, this->getInstances()) {
|
for_each_instance(instance, this->getInstances()) {
|
||||||
Cell * mastercell = instance->getMasterCell();
|
Cell * mastercell = instance->getMasterCell();
|
||||||
instance->destroy();
|
instance->destroy();
|
||||||
mastercell->destroy();
|
mastercell->destroy();
|
||||||
end_for
|
end_for
|
||||||
}
|
}
|
||||||
closeUpdateSession();
|
UpdateSession::close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -409,7 +409,7 @@ void Transistor::createLayout()
|
||||||
void Transistor::duplicateLayout(Transistor* transistor)
|
void Transistor::duplicateLayout(Transistor* transistor)
|
||||||
// *****************************************************
|
// *****************************************************
|
||||||
{
|
{
|
||||||
openUpdateSession();
|
UpdateSession::open();
|
||||||
|
|
||||||
setTerminal(false);
|
setTerminal(false);
|
||||||
|
|
||||||
|
@ -455,7 +455,7 @@ void Transistor::duplicateLayout(Transistor* transistor)
|
||||||
|
|
||||||
materialize();
|
materialize();
|
||||||
|
|
||||||
closeUpdateSession();
|
UpdateSession::close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,15 +99,12 @@ void TrMos::_PlaceAndRoute()
|
||||||
verticalHighMargin = MAX_INTEGER(verticalHighMargin, horizontalMargin + getUnit(2*rdAlu2 + 2*widthOfDrainWire) );
|
verticalHighMargin = MAX_INTEGER(verticalHighMargin, horizontalMargin + getUnit(2*rdAlu2 + 2*widthOfDrainWire) );
|
||||||
horizontalMargin = MAX_INTEGER(horizontalMargin, getUnit(RETURN_EVEN(rdImp + widthOfImp/2)) );
|
horizontalMargin = MAX_INTEGER(horizontalMargin, getUnit(RETURN_EVEN(rdImp + widthOfImp/2)) );
|
||||||
|
|
||||||
openUpdateSession();
|
UpdateSession::open();
|
||||||
|
|
||||||
if(_m == 1 ) { // If there is only one finger.
|
if(_m == 1 ) { // If there is only one finger.
|
||||||
_Place( instance, Transformation::Orientation::ID, Point( horizontalMargin, verticalLowMargin ) );
|
_Place( instance, Transformation::Orientation::ID, Point( horizontalMargin, verticalLowMargin ) );
|
||||||
//CloseUpdateSession();
|
|
||||||
//return;
|
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// get instance who's model's abutment type is Left or Right.
|
// get instance who's model's abutment type is Left or Right.
|
||||||
// ************************************************************
|
// ************************************************************
|
||||||
for_each_occurrence(occurrence, getLeafInstanceOccurrences())
|
for_each_occurrence(occurrence, getLeafInstanceOccurrences())
|
||||||
|
@ -121,8 +118,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
rightins = instance;
|
rightins = instance;
|
||||||
else if ( trans->isRight())
|
else if ( trans->isRight())
|
||||||
rightins = instance;
|
rightins = instance;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if(trans->isRight() && !leftins)
|
if(trans->isRight() && !leftins)
|
||||||
leftins = instance;
|
leftins = instance;
|
||||||
else if (trans->isRight() && leftins )
|
else if (trans->isRight() && leftins )
|
||||||
|
@ -179,7 +175,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
closeUpdateSession();
|
UpdateSession::close();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -190,7 +186,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
instance->materialize();
|
instance->materialize();
|
||||||
end_for
|
end_for
|
||||||
|
|
||||||
openUpdateSession();
|
UpdateSession::open();
|
||||||
|
|
||||||
|
|
||||||
cout <<"Bounding box of TrMos is "<<getString(getBoundingBox())<<endl;
|
cout <<"Bounding box of TrMos is "<<getString(getBoundingBox())<<endl;
|
||||||
|
@ -680,7 +676,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
closeUpdateSession();
|
UpdateSession::close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue