Skip to content

Commit 983ff1b

Browse files
committed
rename: format vector slices consistently with HDL upto/downto direction
1 parent fa6968d commit 983ff1b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

passes/cmds/rename.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ static IdString derive_name_from_cell_output_wire(const RTLIL::Cell *cell, strin
9494
if (chunk.wire->width != chunk.width) {
9595
int lhs = chunk.wire->to_hdl_index(chunk.offset + chunk.width - 1);
9696
int rhs = chunk.wire->to_hdl_index(chunk.offset);
97-
if (chunk.wire->upto)
98-
std::swap(lhs, rhs);
9997

10098
if (lhs != rhs)
10199
name += stringf("[%d:%d]", lhs, rhs);

0 commit comments

Comments
 (0)