From a931eaa58616d171895888369a1d237cef62a494 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 8 Feb 2009 12:46:31 +0000 Subject: [PATCH] Fix another case where VHDL input may be driven This fixes another corner case where the VHDL code generator would incorrectly generate code that drives an input with an output. --- tgt-vhdl/scope.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tgt-vhdl/scope.cc b/tgt-vhdl/scope.cc index 6da614c6c..e98bd9120 100644 --- a/tgt-vhdl/scope.cc +++ b/tgt-vhdl/scope.cc @@ -80,13 +80,11 @@ static void link_scope_to_nexus_signal(nexus_private_t *priv, vhdl_scope *scope, scope_nexus_t *sn; if ((sn = visible_nexus(priv, scope))) { assert(sn->tmpname == ""); - + // Remember to connect this signal up later // If one of the signals is a input, make sure the input is not being driven - if (ivl_signal_port(sn->sig) == IVL_SIP_INPUT) { - sn->connect.push_back(sn->sig); + if (ivl_signal_port(sn->sig) == IVL_SIP_INPUT) sn->sig = sig; - } else sn->connect.push_back(sig); }