Skip to content

Commit

Permalink
Fix out-of-bound pins for comparator (PR#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Jan 16, 2001
1 parent 5f292e5 commit f224ed3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions elab_net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: elab_net.cc,v 1.57 2001/01/10 03:13:23 steve Exp $"
#ident "$Id: elab_net.cc,v 1.58 2001/01/16 04:51:52 steve Exp $"
#endif

# include "PExpr.h"
Expand Down Expand Up @@ -413,7 +413,7 @@ NetNet* PEBinary::elaborate_net_cmp_(Design*des, const string&path,
// The comparison generates gates to bitwise compare
// each pair, and AND all the comparison results.
gate = new NetLogic(scope, des->local_symbol(path),
1+lsig->pin_count(),
1+dwidth,
NetLogic::AND);
connect(gate->pin(0), osig->pin(0));
for (unsigned idx = 0 ; idx < dwidth ; idx += 1) {
Expand Down Expand Up @@ -1797,6 +1797,9 @@ NetNet* PEUnary::elaborate_net(Design*des, const string&path,

/*
* $Log: elab_net.cc,v $
* Revision 1.58 2001/01/16 04:51:52 steve
* Fix out-of-bound pins for comparator (PR#108)
*
* Revision 1.57 2001/01/10 03:13:23 steve
* Build task outputs as lval instead of nets. (PR#98)
*
Expand Down

0 comments on commit f224ed3

Please sign in to comment.