Support a delay without a statement in nex_input().
Add code to check for a plain delay statement (just a delay). When one is found generate a null statement and do not add it (the null statement) to result.
This commit is contained in:
parent
21f33085f0
commit
24f98905aa
|
|
@ -246,7 +246,7 @@ NexusSet* NetBlock::nex_input(bool rem_out)
|
||||||
NexusSet*tmp = cur->nex_input(rem_out);
|
NexusSet*tmp = cur->nex_input(rem_out);
|
||||||
|
|
||||||
/* Add the current input set to the accumulated input set. */
|
/* Add the current input set to the accumulated input set. */
|
||||||
result->add(*tmp);
|
if (tmp != 0) result->add(*tmp);
|
||||||
delete tmp;
|
delete tmp;
|
||||||
|
|
||||||
/* Add the current outputs to the accumulated output set,
|
/* Add the current outputs to the accumulated output set,
|
||||||
|
|
@ -345,10 +345,11 @@ NexusSet* NetForever::nex_input(bool rem_out)
|
||||||
*
|
*
|
||||||
* The nex_input set is the input set of the <statement>. Do *not*
|
* The nex_input set is the input set of the <statement>. Do *not*
|
||||||
* include the input set of the <expr> because it does not affect the
|
* include the input set of the <expr> because it does not affect the
|
||||||
* result.
|
* result. The statement can be omitted.
|
||||||
*/
|
*/
|
||||||
NexusSet* NetPDelay::nex_input(bool rem_out)
|
NexusSet* NetPDelay::nex_input(bool rem_out)
|
||||||
{
|
{
|
||||||
|
if (statement_ == 0) return 0;
|
||||||
NexusSet*result = statement_->nex_input(rem_out);
|
NexusSet*result = statement_->nex_input(rem_out);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue