mirror of https://github.com/YosysHQ/yosys.git
Only prefer connected signals iff they have public names
This commit is contained in:
parent
30b0de006f
commit
8cc53ef72c
|
@ -112,11 +112,12 @@ static bool compare_signals(RTLIL::SigSpec &s1, RTLIL::SigSpec &s2, SigPool ®
|
||||||
if (w1->port_input != w2->port_input)
|
if (w1->port_input != w2->port_input)
|
||||||
return w2->port_input;
|
return w2->port_input;
|
||||||
|
|
||||||
if (regs.check_any(s1) != regs.check_any(s2))
|
if (w1->name[0] == '\\' && w2->name[0] == '\\') {
|
||||||
return regs.check_any(s2);
|
if (regs.check_any(s1) != regs.check_any(s2))
|
||||||
|
return regs.check_any(s2);
|
||||||
if (conns.check_any(s1) != conns.check_any(s2))
|
if (conns.check_any(s1) != conns.check_any(s2))
|
||||||
return conns.check_any(s2);
|
return conns.check_any(s2);
|
||||||
|
}
|
||||||
|
|
||||||
if (w1->port_output != w2->port_output)
|
if (w1->port_output != w2->port_output)
|
||||||
return w2->port_output;
|
return w2->port_output;
|
||||||
|
|
Loading…
Reference in New Issue