mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-18 20:03:39 +00:00
Fixes for some of clang scan-build detected issues
This commit is contained in:
parent
956c4e485a
commit
6574553189
15 changed files with 39 additions and 23 deletions
|
@ -64,6 +64,7 @@ struct OptFfInvWorker
|
|||
log_assert(d_inv == nullptr);
|
||||
d_inv = port.cell;
|
||||
}
|
||||
if (!d_inv) return false;
|
||||
|
||||
if (index.query_is_output(ff.sig_q))
|
||||
return false;
|
||||
|
@ -140,6 +141,7 @@ struct OptFfInvWorker
|
|||
log_assert(d_lut == nullptr);
|
||||
d_lut = port.cell;
|
||||
}
|
||||
if (!d_lut) return false;
|
||||
|
||||
if (index.query_is_output(ff.sig_q))
|
||||
return false;
|
||||
|
@ -167,6 +169,7 @@ struct OptFfInvWorker
|
|||
log_assert(q_inv == nullptr);
|
||||
q_inv = port.cell;
|
||||
}
|
||||
if (!q_inv) return false;
|
||||
|
||||
ff.flip_rst_bits({0});
|
||||
ff.sig_q = q_inv->getPort(ID::Y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue