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.
This commit is contained in:
Nick Gasson 2009-02-08 12:46:31 +00:00 committed by Stephen Williams
parent bb37607a30
commit a931eaa586
1 changed files with 2 additions and 4 deletions

View File

@ -80,13 +80,11 @@ static void link_scope_to_nexus_signal(nexus_private_t *priv, vhdl_scope *scope,
scope_nexus_t *sn; scope_nexus_t *sn;
if ((sn = visible_nexus(priv, scope))) { if ((sn = visible_nexus(priv, scope))) {
assert(sn->tmpname == ""); assert(sn->tmpname == "");
// Remember to connect this signal up later // Remember to connect this signal up later
// If one of the signals is a input, make sure the input is not being driven // 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) { if (ivl_signal_port(sn->sig) == IVL_SIP_INPUT)
sn->connect.push_back(sn->sig);
sn->sig = sig; sn->sig = sig;
}
else else
sn->connect.push_back(sig); sn->connect.push_back(sig);
} }