mirror of https://github.com/YosysHQ/yosys.git
formalff: Fix crash with _NOT_ gates in -hierarchy mode
This commit is contained in:
parent
755b753e1a
commit
afac3f2c76
|
@ -369,7 +369,7 @@ struct PropagateWorker
|
||||||
if (cell->type.in(ID($not), ID($_NOT_))) {
|
if (cell->type.in(ID($not), ID($_NOT_))) {
|
||||||
auto sig_a = cell->getPort(ID::A);
|
auto sig_a = cell->getPort(ID::A);
|
||||||
auto &sig_y = cell->getPort(ID::Y);
|
auto &sig_y = cell->getPort(ID::Y);
|
||||||
sig_a.extend_u0(GetSize(sig_y), cell->parameters.at(ID::A_SIGNED).as_bool());
|
sig_a.extend_u0(GetSize(sig_y), cell->hasParam(ID::A_SIGNED) && cell->parameters.at(ID::A_SIGNED).as_bool());
|
||||||
|
|
||||||
for (int i = 0; i < GetSize(sig_a); i++)
|
for (int i = 0; i < GetSize(sig_a); i++)
|
||||||
if (sig_a[i].is_wire())
|
if (sig_a[i].is_wire())
|
||||||
|
|
Loading…
Reference in New Issue