Limbo 3.5.4
Loading...
Searching...
No Matches
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
 NetPin (std::string &n, std::string &p, Range const &r, int c)
 constructor
 NetPin (std::string &n, std::string &p, std::vector< GeneralName > &vNetName)
 constructor
 NetPin (NetPin const &rhs)
 copy constructor
NetPinoperator= (NetPin const &rhs)
 assignment
 ~NetPin ()
 destructor
void copy (NetPin const &rhs)
 copy function

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

◆ NetPin() [1/4]

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.

◆ NetPin() [2/4]

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.

◆ NetPin() [3/4]

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.

◆ NetPin() [4/4]

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

copy constructor

Parameters
rhsright hand side

Definition at line 115 of file VerilogDataBase.h.

◆ ~NetPin()

VerilogParser::NetPin::~NetPin ( )
inline

destructor

Definition at line 128 of file VerilogDataBase.h.

Member Function Documentation

◆ copy()

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

copy function

Parameters
rhsright hand side

Definition at line 138 of file VerilogDataBase.h.

◆ operator=()

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

assignment

Parameters
rhsright hand side

Definition at line 121 of file VerilogDataBase.h.

Member Data Documentation

◆ net

std::string VerilogParser::NetPin::net

net name, reserved names VerilogParser::CONSTANT_NET, VerilogParser::GROUP_NETS

Definition at line 69 of file VerilogDataBase.h.

◆ pin

std::string VerilogParser::NetPin::pin

pin name

Definition at line 70 of file VerilogDataBase.h.

◆ range

Range VerilogParser::NetPin::range

range of net

Definition at line 71 of file VerilogDataBase.h.


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