net_output handles l-value concatenations.
This commit is contained in:
parent
8dfe16f6d2
commit
a579114ae2
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: net_nex_output.cc,v 1.10 2004/08/28 16:23:05 steve Exp $"
|
||||
#ident "$Id: net_nex_output.cc,v 1.11 2004/09/16 03:17:33 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "config.h"
|
||||
|
|
@ -39,12 +39,16 @@ void NetProc::nex_output(NexusSet&out)
|
|||
<< endl;
|
||||
}
|
||||
|
||||
/*
|
||||
* Assignments have as output all the bits of the concatenated signals
|
||||
* of the l-value.
|
||||
*/
|
||||
void NetAssignBase::nex_output(NexusSet&out)
|
||||
{
|
||||
if (NetNet*lsig = lval_->sig()) {
|
||||
assert(lval_->more == 0);
|
||||
for (unsigned idx = 0 ; idx < lval_->lwidth() ; idx += 1) {
|
||||
unsigned off = lval_->get_loff() + idx;
|
||||
for (NetAssign_*cur = lval_ ; cur ; cur = cur->more) {
|
||||
if (NetNet*lsig = cur->sig()) {
|
||||
for (unsigned idx = 0 ; idx < cur->lwidth() ; idx += 1) {
|
||||
unsigned off = cur->get_loff() + idx;
|
||||
out.add(lsig->pin(off).nexus());
|
||||
}
|
||||
} else {
|
||||
|
|
@ -57,6 +61,7 @@ void NetAssignBase::nex_output(NexusSet&out)
|
|||
dump_lval(cerr);
|
||||
cerr << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void NetBlock::nex_output(NexusSet&out)
|
||||
|
|
@ -117,6 +122,9 @@ void NetWhile::nex_output(NexusSet&out)
|
|||
|
||||
/*
|
||||
* $Log: net_nex_output.cc,v $
|
||||
* Revision 1.11 2004/09/16 03:17:33 steve
|
||||
* net_output handles l-value concatenations.
|
||||
*
|
||||
* Revision 1.10 2004/08/28 16:23:05 steve
|
||||
* Fix use of system tasks in AT_STAR statements.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue