mirror of https://github.com/YosysHQ/yosys.git
celledges: s/x_jump/zpad_jump/
This commit is contained in:
parent
bdd74e61ae
commit
4cce491639
|
@ -227,11 +227,11 @@ void shift_op(AbstractCellEdgesDatabase *db, RTLIL::Cell *cell)
|
||||||
db->add_edge(cell, ID::B, k, ID::Y, i, -1);
|
db->add_edge(cell, ID::B, k, ID::Y, i, -1);
|
||||||
} else if (cell->type.in(ID($shr), ID($sshr)) && is_signed) {
|
} else if (cell->type.in(ID($shr), ID($sshr)) && is_signed) {
|
||||||
bool shift_in_bulk = i < a_width - 1;
|
bool shift_in_bulk = i < a_width - 1;
|
||||||
// can we jump into the ambient x-bits by toggling B[k]?
|
// can we jump into the zero-padding by toggling B[k]?
|
||||||
bool x_jump = (((y_width - i) & ((1 << (k + 1)) - 1)) != 0 \
|
bool zpad_jump = (((y_width - i) & ((1 << (k + 1)) - 1)) != 0 \
|
||||||
&& (((y_width - i) & ~(1 << k)) < (1 << b_width)));
|
&& (((y_width - i) & ~(1 << k)) < (1 << b_width)));
|
||||||
|
|
||||||
if (shift_in_bulk || (cell->type == ID($shr) && x_jump))
|
if (shift_in_bulk || (cell->type == ID($shr) && zpad_jump))
|
||||||
db->add_edge(cell, ID::B, k, ID::Y, i, -1);
|
db->add_edge(cell, ID::B, k, ID::Y, i, -1);
|
||||||
} else {
|
} else {
|
||||||
if (i < a_width)
|
if (i < a_width)
|
||||||
|
|
Loading…
Reference in New Issue