![]() |
![]() |
Declaration object for nets. More...
#include <cnet.h>
Public Member Functions | |
CNet (CSymbol *symbol, Coord_t *aLoc, Wire_t wireType, CDataType *dataType, int undefined) | |
Create a net declaration. | |
virtual CDecl * | Clone (CObstack *heap) |
Create a clone of this declaration. | |
void | PortDir (CPortDir *p) |
Set portdir associated with net. | |
CPortDir * | PortDir () |
Get portdir associated with net. | |
void | SetDelay (CNode *aExp) |
Set net delay. | |
CNode * | GetDelay (void) |
Get net delay. | |
int | GetUndefined (void) |
Get undefined attribute. | |
void | SetUndefined (int value) |
Set undefined attribute. | |
StrengthPair_t | GetStrength () |
Get drive strength. | |
void | SetStrength (StrengthPair_t s) |
Set drive strength. | |
virtual void | SetVectored (int v) |
Set vectored attribute. | |
virtual int | GetVectored () |
Get vectored attribute. | |
virtual void | SetScalared (int v) |
Set scalared attribute. | |
virtual int | GetScalared () |
Get scalared attribute. | |
virtual void | Dump (FILE *f) |
Dump net info to file descriptor. | |
Protected Member Functions | |
void | Copy (CObstack *heap, const CNet &net) |
Create a deep copy of given declaration. |
Declaration object for nets.
CNet::CNet | ( | CSymbol * | symbol, |
Coord_t * | aLoc, | ||
Wire_t | wireType, | ||
CDataType * | dataType, | ||
int | undefined | ||
) |
Create a net declaration.
symbol | declaration name. |
aLoc | file descriptor. |
wireType | wire type. |
dataType | net data type |
undefined | non-zero if net is not explicitly defined in source. |
virtual CDecl* CNet::Clone | ( | CObstack * | heap | ) | [virtual] |
Create a clone of this declaration.
heap | heap to use for allocation. |
Implements CDecl.
void CNet::Copy | ( | CObstack * | heap, |
const CNet & | net | ||
) | [protected] |
Create a deep copy of given declaration.
heap | heap to use for allocation. |
net | declaration to copy from. |
virtual void CNet::Dump | ( | FILE * | f | ) | [virtual] |
CNode* CNet::GetDelay | ( | void | ) | [inline] |
Get net delay.
virtual int CNet::GetScalared | ( | ) | [inline, virtual] |
StrengthPair_t CNet::GetStrength | ( | ) | [inline] |
Get drive strength.
int CNet::GetUndefined | ( | void | ) | [inline] |
Get undefined attribute.
virtual int CNet::GetVectored | ( | ) | [inline, virtual] |
void CNet::PortDir | ( | CPortDir * | p | ) | [inline] |
Set portdir associated with net.
p | to associate with net. |
CPortDir* CNet::PortDir | ( | ) | [inline] |
Get portdir associated with net.
void CNet::SetDelay | ( | CNode * | aExp | ) | [inline] |
Set net delay.
aExp | net delay expression. |
virtual void CNet::SetScalared | ( | int | v | ) | [inline, virtual] |
void CNet::SetStrength | ( | StrengthPair_t | s | ) | [inline] |
Set drive strength.
s | drive strength. |
void CNet::SetUndefined | ( | int | value | ) | [inline] |
Set undefined attribute.
value | non-zero if net is undeclared in source code. |
virtual void CNet::SetVectored | ( | int | v | ) | [inline, virtual] |