From 61366f64b30192729b39f671bfc2a96d1105812d Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Wed, 2 Apr 2008 12:13:23 +0000 Subject: [PATCH] cleaning hurricane --- chamsin/src/analogic/MetaTransistor.cpp | 16 ++++++++-------- chamsin/src/analogic/Transistor.cpp | 10 +++++----- chamsin/src/device/TrMos.cpp | 18 +++++++++--------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/chamsin/src/analogic/MetaTransistor.cpp b/chamsin/src/analogic/MetaTransistor.cpp index 8cc1bd69..998514e4 100644 --- a/chamsin/src/analogic/MetaTransistor.cpp +++ b/chamsin/src/analogic/MetaTransistor.cpp @@ -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 } diff --git a/chamsin/src/analogic/Transistor.cpp b/chamsin/src/analogic/Transistor.cpp index 97abaca4..a830a2ab 100644 --- a/chamsin/src/analogic/Transistor.cpp +++ b/chamsin/src/analogic/Transistor.cpp @@ -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()) diff --git a/chamsin/src/device/TrMos.cpp b/chamsin/src/device/TrMos.cpp index 0559de5f..e79e449e 100644 --- a/chamsin/src/device/TrMos.cpp +++ b/chamsin/src/device/TrMos.cpp @@ -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); }