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:
parent
bb37607a30
commit
a931eaa586
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue