From 94270ff9880729e4572838aed778e2cfaf6b89b3 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 20 Mar 2000 15:28:58 +0000 Subject: [PATCH] Fix lval part select of non-blocking assign. --- elaborate.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index 4b5828156..8a8026910 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: elaborate.cc,v 1.149 2000/03/12 21:41:47 steve Exp $" +#ident "$Id: elaborate.cc,v 1.150 2000/03/20 15:28:58 steve Exp $" #endif /* @@ -1089,7 +1089,7 @@ NetProc* PAssignNB::elaborate(Design*des, const string&path) const cur = new NetAssignNB(des->local_symbol(path), des, wid, rv); for (unsigned idx = 0 ; idx < wid ; idx += 1) - connect(cur->pin(idx), reg->pin(idx+lsb)); + connect(cur->pin(idx), reg->pin(reg->sb_to_idx(idx+lsb))); } else { assert(reg->pin_count() == 1); @@ -1962,6 +1962,9 @@ Design* elaborate(const map&modules, /* * $Log: elaborate.cc,v $ + * Revision 1.150 2000/03/20 15:28:58 steve + * Fix lval part select of non-blocking assign. + * * Revision 1.149 2000/03/12 21:41:47 steve * Connect output of NB assign to indexed pin. *