From 5a96b397e40d068f1bf0b21a2f65fb4847246530 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Wed, 30 Sep 2009 19:51:05 -0700 Subject: [PATCH] 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. --- tgt-vvp/vvp_scope.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tgt-vvp/vvp_scope.c b/tgt-vvp/vvp_scope.c index 325f171e6..f76964231 100644 --- a/tgt-vvp/vvp_scope.c +++ b/tgt-vvp/vvp_scope.c @@ -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 {