Hurricane cleaning
This commit is contained in:
parent
e019677605
commit
6fd1529cff
|
@ -311,7 +311,7 @@ void GenV1Trans::Calculate(Transistor* transistor)
|
||||||
void GenV1Trans::Generate(Transistor* transistor)
|
void GenV1Trans::Generate(Transistor* transistor)
|
||||||
// *********************************************
|
// *********************************************
|
||||||
{
|
{
|
||||||
OpenUpdateSession();
|
openUpdateSession();
|
||||||
|
|
||||||
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();
|
closeUpdateSession();
|
||||||
|
|
||||||
// Set Transistor::_mapNet2Box.
|
// Set Transistor::_mapNet2Box.
|
||||||
// ****************************
|
// ****************************
|
||||||
|
|
|
@ -140,13 +140,14 @@ void MetaTransistor::createLayout()
|
||||||
void MetaTransistor::Flush()
|
void MetaTransistor::Flush()
|
||||||
// *************************
|
// *************************
|
||||||
{
|
{
|
||||||
OpenUpdateSession();
|
openUpdateSession();
|
||||||
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();
|
}
|
||||||
|
closeUpdateSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Record* Transistor::Polarity::_getRecord() const
|
||||||
// *****************************************
|
// *****************************************
|
||||||
{
|
{
|
||||||
Record* record = new Record(getString(this));
|
Record* record = new Record(getString(this));
|
||||||
record->Add(getSlot("Code", _code));
|
record->add(getSlot("Code", _code));
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ Record* Transistor::MaskVersion::_getRecord() const
|
||||||
// **************************************************
|
// **************************************************
|
||||||
{
|
{
|
||||||
Record* record = new Record(getString(this));
|
Record* record = new Record(getString(this));
|
||||||
record->Add(getSlot("Code", _code));
|
record->add(getSlot("Code", _code));
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ Record* Transistor::Type::_getRecord() const
|
||||||
// *****************************************
|
// *****************************************
|
||||||
{
|
{
|
||||||
Record* record = new Record(getString(this));
|
Record* record = new Record(getString(this));
|
||||||
record->Add(getSlot("Code", _code));
|
record->add(getSlot("Code", _code));
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,7 +409,7 @@ void Transistor::createLayout()
|
||||||
void Transistor::duplicateLayout(Transistor* transistor)
|
void Transistor::duplicateLayout(Transistor* transistor)
|
||||||
// *****************************************************
|
// *****************************************************
|
||||||
{
|
{
|
||||||
OpenUpdateSession();
|
openUpdateSession();
|
||||||
|
|
||||||
setTerminal(false);
|
setTerminal(false);
|
||||||
|
|
||||||
|
@ -455,7 +455,7 @@ void Transistor::duplicateLayout(Transistor* transistor)
|
||||||
|
|
||||||
materialize();
|
materialize();
|
||||||
|
|
||||||
CloseUpdateSession();
|
closeUpdateSession();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -293,7 +293,7 @@ template<>
|
||||||
( const Transistor::Polarity::Code* object )
|
( const Transistor::Polarity::Code* object )
|
||||||
{
|
{
|
||||||
Record* record = new Record(getString(object));
|
Record* record = new Record(getString(object));
|
||||||
record->Add(getSlot("Code", (unsigned int*)object));
|
record->add(getSlot("Code", (unsigned int*)object));
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,7 +324,7 @@ template<>
|
||||||
( const Transistor::MaskVersion::Code* object )
|
( const Transistor::MaskVersion::Code* object )
|
||||||
{
|
{
|
||||||
Record* record = new Record(getString(object));
|
Record* record = new Record(getString(object));
|
||||||
record->Add(getSlot("Code", (unsigned int*)object));
|
record->add(getSlot("Code", (unsigned int*)object));
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ template<>
|
||||||
( const Transistor::Type::Code* object )
|
( const Transistor::Type::Code* object )
|
||||||
{
|
{
|
||||||
Record* record = new Record(getString(object));
|
Record* record = new Record(getString(object));
|
||||||
record->Add(getSlot("Code", (unsigned int*)object));
|
record->add(getSlot("Code", (unsigned int*)object));
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ 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();
|
openUpdateSession();
|
||||||
|
|
||||||
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 ) );
|
||||||
|
@ -179,7 +179,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CloseUpdateSession();
|
closeUpdateSession();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
instance->materialize();
|
instance->materialize();
|
||||||
end_for
|
end_for
|
||||||
|
|
||||||
OpenUpdateSession();
|
openUpdateSession();
|
||||||
|
|
||||||
|
|
||||||
cout <<"Bounding box of TrMos is "<<getString(getBoundingBox())<<endl;
|
cout <<"Bounding box of TrMos is "<<getString(getBoundingBox())<<endl;
|
||||||
|
@ -680,7 +680,7 @@ void TrMos::_PlaceAndRoute()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
CloseUpdateSession();
|
closeUpdateSession();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue