Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | List of all members
VerilogParser::NetPin Struct Reference

Describe the connection of pins to nets. More...

#include <VerilogDataBase.h>

Classes

union  Extension
 Extension to handle a net with constant values or a regular net. More...
 

Public Member Functions

 NetPin (std::string &n, std::string &p, Range const &r=Range())
 constructor More...
 
 NetPin (std::string &n, std::string &p, Range const &r, int c)
 constructor More...
 
 NetPin (std::string &n, std::string &p, std::vector< GeneralName > &vNetName)
 constructor More...
 
 NetPin (NetPin const &rhs)
 copy constructor More...
 
NetPinoperator= (NetPin const &rhs)
 assignment More...
 
 ~NetPin ()
 destructor
 
void copy (NetPin const &rhs)
 copy function More...
 

Public Attributes

std::string net
 net name, reserved names VerilogParser::CONSTANT_NET, VerilogParser::GROUP_NETS
 
std::string pin
 pin name
 
Range range
 range of net
 
union
VerilogParser::NetPin::Extension 
extension
 extension to handle a net with constant values or a regular net
 

Detailed Description

Describe the connection of pins to nets.

NOR2_X1 u2 ( .a(n1), .b(n3), .o(n2) ); NOR2_X1 u2 ( .a(1'b1), .b(n3), .o(n2) ); // constant net NOR2_X1 u2 ( .a(n1), .b({n3, n4}), .o(n2) ); // group nets

Each of .a(n1), .b(n3) and .o(n2) generates an object of net and pin.

Definition at line 67 of file VerilogDataBase.h.

Constructor & Destructor Documentation

VerilogParser::NetPin::NetPin ( std::string &  n,
std::string &  p,
Range const &  r = Range() 
)
inline

constructor

Parameters
nnet name
ppin name
rnet range

Definition at line 83 of file VerilogDataBase.h.

VerilogParser::NetPin::NetPin ( std::string &  n,
std::string &  p,
Range const &  r,
int  c 
)
inline

constructor

Parameters
nnet name; it will be VerilogParser::CONSTANT_NET if the net is actually a value
ppin name
rnet range
cconstant value only valid if the net is a VerilogParser::CONSTANT_NET

Definition at line 94 of file VerilogDataBase.h.

VerilogParser::NetPin::NetPin ( std::string &  n,
std::string &  p,
std::vector< GeneralName > &  vNetName 
)
inline

constructor

Parameters
nnet name; it will be VerilogParser::GROUP_NETS if the net is actually a group of nets
ppin name
vNetNamegroup of nets only valid if the net is a VerilogParser::GROUP_NETS

Definition at line 105 of file VerilogDataBase.h.

VerilogParser::NetPin::NetPin ( NetPin const &  rhs)
inline

copy constructor

Parameters
rhsright hand side

Definition at line 115 of file VerilogDataBase.h.

Member Function Documentation

void VerilogParser::NetPin::copy ( NetPin const &  rhs)
inline

copy function

Parameters
rhsright hand side

Definition at line 138 of file VerilogDataBase.h.

NetPin& VerilogParser::NetPin::operator= ( NetPin const &  rhs)
inline

assignment

Parameters
rhsright hand side

Definition at line 121 of file VerilogDataBase.h.


The documentation for this struct was generated from the following file: