Elide local nets that have no drivers.

Local nets that have no (zero) drivers are dead weight. Since
they have no drivers, they are not being used anywhere. Since
they are local, they are not force-able.
This commit is contained in:
Stephen Williams 2009-09-30 19:51:05 -07:00
parent e076087320
commit 5a96b397e4
1 changed files with 6 additions and 1 deletions

View File

@ -482,7 +482,12 @@ static void draw_net_in_scope(ivl_signal_t sig)
} else if (ivl_signal_local(sig) && ivl_scope_is_auto(ivl_signal_scope(sig))) {
assert(word_count == 1);
fprintf(vvp_out, "; Elide net v%p_%u name=%s\n",
fprintf(vvp_out, "; Elide local/automatic net v%p_%u name=%s\n",
sig, iword, ivl_signal_basename(sig));
} else if (ivl_signal_local(sig) && nex_data->drivers_count==0) {
assert(word_count == 1);
fprintf(vvp_out, "; Elide local net with no drivers, v%p_%u name=%s\n",
sig, iword, ivl_signal_basename(sig));
} else {