From e152b912260fa39519d163497d0f9f599c3df4a5 Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 6 Jul 2000 18:12:28 +0000 Subject: [PATCH] unop_not can take out width same as in width. --- vvm/vvm_func.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vvm/vvm_func.cc b/vvm/vvm_func.cc index 7d4153368..721f5bdac 100644 --- a/vvm/vvm_func.cc +++ b/vvm/vvm_func.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: vvm_func.cc,v 1.11 2000/06/30 15:47:06 steve Exp $" +#ident "$Id: vvm_func.cc,v 1.12 2000/07/06 18:12:28 steve Exp $" #endif # include "vvm_func.h" @@ -46,7 +46,7 @@ vpip_bit_t vvm_unop_lnot(const vvm_bitset_t&r) void vvm_unop_not(vvm_bitset_t&v, const vvm_bitset_t&p) { - assert(v.nbits < p.nbits); + assert(v.nbits <= p.nbits); for (unsigned idx = 0 ; idx < v.nbits ; idx += 1) v[idx] = B_NOT(p[idx]); } @@ -495,6 +495,9 @@ void vvm_ternary(vvm_bitset_t&v, vpip_bit_t c, /* * $Log: vvm_func.cc,v $ + * Revision 1.12 2000/07/06 18:12:28 steve + * unop_not can take out width same as in width. + * * Revision 1.11 2000/06/30 15:47:06 steve * Reduce result is OK in ~ operator. *