cleaning hurricane
This commit is contained in:
parent
c59d99e99f
commit
61366f64b3
|
@ -47,10 +47,10 @@ void MetaTransistor::_preDestroy() {
|
|||
void MetaTransistor::_postCreate() {
|
||||
Inherit::_postCreate();
|
||||
|
||||
(Net::create(this, Name("DRAIN")))->SetExternal(true);
|
||||
(Net::create(this, Name("SOURCE")))->SetExternal(true);
|
||||
(Net::create(this, Name("GRID")))->SetExternal(true);
|
||||
(Net::create(this, Name("BULK")))->SetExternal(true);
|
||||
(Net::create(this, Name("DRAIN")))->setExternal(true);
|
||||
(Net::create(this, Name("SOURCE")))->setExternal(true);
|
||||
(Net::create(this, Name("GRID")))->setExternal(true);
|
||||
(Net::create(this, Name("BULK")))->setExternal(true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,10 +67,10 @@ void MetaTransistor::createConnection()
|
|||
assert(err_msg.c_str());
|
||||
}
|
||||
|
||||
instance->getPlug(mastercell->getNet(Name("DRAIN")))->SetNet(getNet(Name("DRAIN")));
|
||||
instance->getPlug(mastercell->getNet(Name("SOURCE")))->SetNet(getNet(Name("SOURCE")));
|
||||
instance->getPlug(mastercell->getNet(Name("GRID")))->SetNet(getNet(Name("GRID")));
|
||||
instance->getPlug(mastercell->getNet(Name("BULK")))->SetNet(getNet(Name("BULK")));
|
||||
instance->getPlug(mastercell->getNet(Name("DRAIN")))->setNet(getNet(Name("DRAIN")));
|
||||
instance->getPlug(mastercell->getNet(Name("SOURCE")))->setNet(getNet(Name("SOURCE")));
|
||||
instance->getPlug(mastercell->getNet(Name("GRID")))->setNet(getNet(Name("GRID")));
|
||||
instance->getPlug(mastercell->getNet(Name("BULK")))->setNet(getNet(Name("BULK")));
|
||||
end_for
|
||||
}
|
||||
|
||||
|
|
|
@ -270,10 +270,10 @@ void Transistor::_postCreate()
|
|||
{
|
||||
Inherit::_postCreate();
|
||||
|
||||
(Net::create(this, Name("DRAIN")))->SetExternal(true);
|
||||
(Net::create(this, Name("SOURCE")))->SetExternal(true);
|
||||
(Net::create(this, Name("GRID")))->SetExternal(true);
|
||||
(Net::create(this, Name("BULK")))->SetExternal(true);
|
||||
(Net::create(this, Name("DRAIN")))->setExternal(true);
|
||||
(Net::create(this, Name("SOURCE")))->setExternal(true);
|
||||
(Net::create(this, Name("GRID")))->setExternal(true);
|
||||
(Net::create(this, Name("BULK")))->setExternal(true);
|
||||
|
||||
// By default, transistor's length and heigth is NULL, and is internal.
|
||||
// ********************************************************************
|
||||
|
@ -400,7 +400,7 @@ void Transistor::DuplicateLayout(Transistor* transistor)
|
|||
for_each_net(net, transistor->getNets())
|
||||
if( !( tmp=getNet(net->getName()) ) ) { //
|
||||
tmp = Net::create(this, net->getName());
|
||||
tmp->SetExternal(net->IsExternal());
|
||||
tmp->setExternal(net->isExternal());
|
||||
}
|
||||
|
||||
for_each_component(component, net->getComponents())
|
||||
|
|
|
@ -101,12 +101,12 @@ void TrMos::create(const char type, const bool isbsconnected)
|
|||
Net * grid = NULL;
|
||||
Net * bulk = NULL;
|
||||
|
||||
(drain = Net::create(this, Name("drain")))->SetExternal(true);
|
||||
(source = Net::create(this, Name("source")))->SetExternal(true);
|
||||
(grid = Net::create(this, Name("grid")))->SetExternal(true);
|
||||
(drain = Net::create(this, Name("drain")))->setExternal(true);
|
||||
(source = Net::create(this, Name("source")))->setExternal(true);
|
||||
(grid = Net::create(this, Name("grid")))->setExternal(true);
|
||||
|
||||
if(!isbsconnected) {
|
||||
(bulk = Net::create(this, Name("bulk")))->SetExternal(true);
|
||||
(bulk = Net::create(this, Name("bulk")))->setExternal(true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -119,14 +119,14 @@ void TrMos::create(const char type, const bool isbsconnected)
|
|||
Name("Ins_" + getString(_tr1->getName())),
|
||||
_tr1);
|
||||
|
||||
instance->getPlug(_tr1->getNet(Name("DRAIN")))->SetNet(drain);
|
||||
instance->getPlug(_tr1->getNet(Name("SOURCE")))->SetNet(source);
|
||||
instance->getPlug(_tr1->getNet(Name("GRID")))->SetNet(grid);
|
||||
instance->getPlug(_tr1->getNet(Name("DRAIN")))->setNet(drain);
|
||||
instance->getPlug(_tr1->getNet(Name("SOURCE")))->setNet(source);
|
||||
instance->getPlug(_tr1->getNet(Name("GRID")))->setNet(grid);
|
||||
|
||||
if(!isbsconnected)
|
||||
instance->getPlug(_tr1->getNet(Name("BULK")))->SetNet(bulk);
|
||||
instance->getPlug(_tr1->getNet(Name("BULK")))->setNet(bulk);
|
||||
else
|
||||
instance->getPlug(_tr1->getNet(Name("BULK")))->SetNet(source);
|
||||
instance->getPlug(_tr1->getNet(Name("BULK")))->setNet(source);
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue