VLSI SAPD Documentation

Presentation AGDS CIF DTR OPENCHAMS SPICE Links & Contact


Data Structures | Public Member Functions
Net Class Reference

Data Structures

class  Connection
 

Public Member Functions

PortaddPort (const std::string &type, unsigned idx, double x, double y, const std::string &orient)
 adds a Port to the net. More...
 
WireaddWire ()
 adds a Wire to the net. More...
 
void connectTo (const std::string &instanceName, const std::string &connectorName)
 adds a connection to the net. More...
 
const std::vector< Net::Connection * > & getConnections ()
 returns the list of net's connections.
 
const std::string & getName () const
 returns the name of the net.
 
NetlistgetNetlist ()
 returns the Netlist to which the net belongs.
 
const std::vector< Port * > & getPorts ()
 returns the list of net's Port.
 
const std::string & getType ()
 returns the type of the net.
 
const std::vector< Wire * > & getWires ()
 returns the list of net's Wire.
 
bool hasNoConnections ()
 returns true if the net has no Net::Connection.
 
bool hasNoPorts ()
 returns true if net has no Port.
 
bool hasNoWires ()
 returns true if net has no Wire.
 
bool isExternal ()
 returns true if the net is external.
 
 Net (const std::string &netName, const std::string &typeName, bool, Netlist *)
 creates a new net. More...
 

Detailed Description

This class describes a Net.

Constructor & Destructor Documentation

◆ Net()

Net ( const std::string &  netName,
const std::string &  typeName,
bool  isExternal,
Netlist netlist 
)

creates a new net.

Parameters
namethe name of the net.
typethe type of the net (LOGICAL, POWER, GROUND, ...).
externalif true, then the net is set as external.
netlistthe netlist to which the transistor belongs.

Member Function Documentation

◆ addPort()

Port * addPort ( const std::string &  type,
unsigned  idx,
double  x,
double  y,
const std::string &  orient 
)

adds a Port to the net.

Parameters
typethe type of the port.
idxthe index of the port.
xthe x coordinate of the port.
ythe y coordinate of the port.
orientthe orientation of the port.
Returns
the newly created Port.

◆ addWire()

Wire * addWire ( )

adds a Wire to the net.

Returns
the newly create Wire.

◆ connectTo()

void connectTo ( const std::string &  instanceName,
const std::string &  connectorName 
)

adds a connection to the net.

Parameters
instanceNamethe instance's name of the Net::Connection.
connectorNamethe connector's name ot the Net::Connection.


Generated by doxygen 1.8.14 on Thu Oct 18 2018 Return to top of page
VLSI SAPD Documentation Copyright © 2010 - 2011 UPMC All rights reserved