mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 06:13:41 +00:00
Smallfix to opt_expr
This commit is contained in:
parent
771e5c9996
commit
0a87b0f075
1 changed files with 1 additions and 1 deletions
|
@ -1869,7 +1869,6 @@ skip_identity:
|
||||||
// the sign bits are those of A (except when R=0)
|
// the sign bits are those of A (except when R=0)
|
||||||
if (is_truncating && a_signed && GetSize(sig_a) != 0 && exp != 0)
|
if (is_truncating && a_signed && GetSize(sig_a) != 0 && exp != 0)
|
||||||
{
|
{
|
||||||
module->remove(cell);
|
|
||||||
SigSpec truncating = sig_a.extract(0, exp);
|
SigSpec truncating = sig_a.extract(0, exp);
|
||||||
|
|
||||||
SigSpec a_sign = sig_a[sig_a.size()-1];
|
SigSpec a_sign = sig_a[sig_a.size()-1];
|
||||||
|
@ -1878,6 +1877,7 @@ skip_identity:
|
||||||
|
|
||||||
truncating.append(extend_bit);
|
truncating.append(extend_bit);
|
||||||
module->addPos(NEW_ID2_SUFFIX("pos"), truncating, sig_y, true, cell->get_src_attribute()); // SILIMATE: Improve the naming
|
module->addPos(NEW_ID2_SUFFIX("pos"), truncating, sig_y, true, cell->get_src_attribute()); // SILIMATE: Improve the naming
|
||||||
|
module->remove(cell);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue