mirror of https://github.com/YosysHQ/yosys.git
Fixed const folding of $bu0 cells
This commit is contained in:
parent
ae5032af84
commit
9e99984336
|
@ -216,7 +216,7 @@ struct CellTypes
|
||||||
type = "$shl";
|
type = "$shl";
|
||||||
|
|
||||||
if (type != "$sshr" && type != "$sshl" && type != "$shr" && type != "$shl" &&
|
if (type != "$sshr" && type != "$sshl" && type != "$shr" && type != "$shl" &&
|
||||||
type != "$pos" && type != "$neg" && type != "$not") {
|
type != "$pos" && type != "$neg" && type != "$not" && type != "$bu0") {
|
||||||
if (!signed1 || !signed2)
|
if (!signed1 || !signed2)
|
||||||
signed1 = false, signed2 = false;
|
signed1 = false, signed2 = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -463,6 +463,7 @@ void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module, bool cons
|
||||||
FOLD_2ARG_CELL(pow)
|
FOLD_2ARG_CELL(pow)
|
||||||
|
|
||||||
FOLD_1ARG_CELL(pos)
|
FOLD_1ARG_CELL(pos)
|
||||||
|
FOLD_1ARG_CELL(bu0)
|
||||||
FOLD_1ARG_CELL(neg)
|
FOLD_1ARG_CELL(neg)
|
||||||
|
|
||||||
// be very conservative with optimizing $mux cells as we do not want to break mux trees
|
// be very conservative with optimizing $mux cells as we do not want to break mux trees
|
||||||
|
|
Loading…
Reference in New Issue