Bit padding in assignment to memory.
This commit is contained in:
parent
23725cf42c
commit
99a891b8a1
|
|
@ -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: elaborate.cc,v 1.159 2000/04/18 01:02:53 steve Exp $"
|
#ident "$Id: elaborate.cc,v 1.160 2000/04/21 04:38:15 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -749,6 +749,9 @@ NetProc* PAssign::assign_to_memory_(NetMemory*mem, PExpr*ix,
|
||||||
NetNet*idx = ix->elaborate_net(des, path, 0, 0, 0, 0);
|
NetNet*idx = ix->elaborate_net(des, path, 0, 0, 0, 0);
|
||||||
assert(idx);
|
assert(idx);
|
||||||
|
|
||||||
|
if (rv->expr_width() < mem->width())
|
||||||
|
rv = pad_to_width(rv, mem->width());
|
||||||
|
|
||||||
NetAssignMem*am = new NetAssignMem(mem, idx, rv);
|
NetAssignMem*am = new NetAssignMem(mem, idx, rv);
|
||||||
am->set_line(*this);
|
am->set_line(*this);
|
||||||
return am;
|
return am;
|
||||||
|
|
@ -2225,6 +2228,9 @@ Design* elaborate(const map<string,Module*>&modules,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: elaborate.cc,v $
|
* $Log: elaborate.cc,v $
|
||||||
|
* Revision 1.160 2000/04/21 04:38:15 steve
|
||||||
|
* Bit padding in assignment to memory.
|
||||||
|
*
|
||||||
* Revision 1.159 2000/04/18 01:02:53 steve
|
* Revision 1.159 2000/04/18 01:02:53 steve
|
||||||
* Minor cleanup of NetTaskDef.
|
* Minor cleanup of NetTaskDef.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue