Move some NetNet method out of the header file.

This commit is contained in:
steve 2000-09-24 15:44:44 +00:00
parent 36cc374ec9
commit 2be1c115ff
2 changed files with 38 additions and 8 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: netlist.cc,v 1.136 2000/09/22 03:58:30 steve Exp $" #ident "$Id: netlist.cc,v 1.137 2000/09/24 15:44:44 steve Exp $"
#endif #endif
# include <cassert> # include <cassert>
@ -336,6 +336,31 @@ NetScope* NetNet::scope()
return scope_; return scope_;
} }
NetNet::Type NetNet::type() const
{
return type_;
}
NetNet::PortType NetNet::port_type() const
{
return port_type_;
}
void NetNet::port_type(NetNet::PortType t)
{
port_type_ = t;
}
long NetNet::lsb() const
{
return lsb_;
}
long NetNet::msb() const
{
return msb_;
}
const NetScope* NetNet::scope() const const NetScope* NetNet::scope() const
{ {
return scope_; return scope_;
@ -2375,6 +2400,9 @@ bool NetUDP::sequ_glob_(string input, char output)
/* /*
* $Log: netlist.cc,v $ * $Log: netlist.cc,v $
* Revision 1.137 2000/09/24 15:44:44 steve
* Move some NetNet method out of the header file.
*
* Revision 1.136 2000/09/22 03:58:30 steve * Revision 1.136 2000/09/22 03:58:30 steve
* Access to the name of a system task call. * Access to the name of a system task call.
* *

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: netlist.h,v 1.164 2000/09/22 03:58:30 steve Exp $" #ident "$Id: netlist.h,v 1.165 2000/09/24 15:44:44 steve Exp $"
#endif #endif
/* /*
@ -312,18 +312,17 @@ class NetNet : public NetObj, public LineInfo {
NetScope* scope(); NetScope* scope();
const NetScope* scope() const; const NetScope* scope() const;
Type type() const { return type_; } Type type() const;
//void type(Type t) { type_ = t; }
PortType port_type() const { return port_type_; } PortType port_type() const;
void port_type(PortType t) { port_type_ = t; } void port_type(PortType t);
/* These methods return the msb and lsb indices for the most /* These methods return the msb and lsb indices for the most
significant and least significant bits. These are signed significant and least significant bits. These are signed
longs, and may be different from pin numbers. For example, longs, and may be different from pin numbers. For example,
reg [1:8] has 8 bits, msb==1 and lsb==8. */ reg [1:8] has 8 bits, msb==1 and lsb==8. */
long msb() const { return msb_; } long msb() const;
long lsb() const { return lsb_; } long lsb() const;
/* This method converts a signed index (the type that might be /* This method converts a signed index (the type that might be
found in the verilog source) to a pin number. It accounts found in the verilog source) to a pin number. It accounts
@ -2800,6 +2799,9 @@ extern ostream& operator << (ostream&, NetNet::Type);
/* /*
* $Log: netlist.h,v $ * $Log: netlist.h,v $
* Revision 1.165 2000/09/24 15:44:44 steve
* Move some NetNet method out of the header file.
*
* Revision 1.164 2000/09/22 03:58:30 steve * Revision 1.164 2000/09/22 03:58:30 steve
* Access to the name of a system task call. * Access to the name of a system task call.
* *