Don't include local signals in @* sensitivity list.

A locally created signal should not be included in the sensitivity
list created by @*.
This commit is contained in:
Cary R 2011-01-30 23:24:47 -08:00 committed by Stephen Williams
parent 8841f81f51
commit 9d519ffa78
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2008 Stephen Williams (steve@icarus.com)
* Copyright (c) 2002-2011 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -153,6 +153,8 @@ NexusSet* NetESignal::nex_input(bool rem_out)
* as the trigger. Other simulators also add everything.
*/
NexusSet*result = new NexusSet;
/* Local signals are not added to the sensitivity list. */
if (net_->local_flag()) return result;
/* If we have an array index add it to the sensitivity list. */
if (word_) {
NexusSet*tmp;