From 2be1c115fff2b110de071171bac19c9601a6f99a Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 24 Sep 2000 15:44:44 +0000 Subject: [PATCH] Move some NetNet method out of the header file. --- netlist.cc | 30 +++++++++++++++++++++++++++++- netlist.h | 16 +++++++++------- 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/netlist.cc b/netlist.cc index e6c808b2b..00d6ae9c6 100644 --- a/netlist.cc +++ b/netlist.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #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 # include @@ -336,6 +336,31 @@ NetScope* NetNet::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 { return scope_; @@ -2375,6 +2400,9 @@ bool NetUDP::sequ_glob_(string input, char output) /* * $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 * Access to the name of a system task call. * diff --git a/netlist.h b/netlist.h index 7eb0ace68..2abbad7fb 100644 --- a/netlist.h +++ b/netlist.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #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 /* @@ -312,18 +312,17 @@ class NetNet : public NetObj, public LineInfo { NetScope* scope(); const NetScope* scope() const; - Type type() const { return type_; } - //void type(Type t) { type_ = t; } + Type type() const; - PortType port_type() const { return port_type_; } - void port_type(PortType t) { port_type_ = t; } + PortType port_type() const; + void port_type(PortType t); /* These methods return the msb and lsb indices for the most significant and least significant bits. These are signed longs, and may be different from pin numbers. For example, reg [1:8] has 8 bits, msb==1 and lsb==8. */ - long msb() const { return msb_; } - long lsb() const { return lsb_; } + long msb() const; + long lsb() const; /* This method converts a signed index (the type that might be 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 $ + * 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 * Access to the name of a system task call. *