From 24f98905aa85bb9ee76a5bb425c47977d8ae0a4c Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 29 Dec 2008 13:02:21 -0800 Subject: [PATCH] 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. --- net_nex_input.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net_nex_input.cc b/net_nex_input.cc index f61393a17..aeddc73eb 100644 --- a/net_nex_input.cc +++ b/net_nex_input.cc @@ -246,7 +246,7 @@ NexusSet* NetBlock::nex_input(bool rem_out) NexusSet*tmp = cur->nex_input(rem_out); /* Add the current input set to the accumulated input set. */ - result->add(*tmp); + if (tmp != 0) result->add(*tmp); delete tmp; /* 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 . Do *not* * include the input set of the because it does not affect the - * result. + * result. The statement can be omitted. */ NexusSet* NetPDelay::nex_input(bool rem_out) { + if (statement_ == 0) return 0; NexusSet*result = statement_->nex_input(rem_out); return result; }