Layout.reorder_bits

Layout.reorder_bits(bits)[source]

Given an ordered list of bits, reorder them according to this layout.

The list of bits must exactly match the virtual bits in this layout.

Parameters

bits (list[Bit]) – the bits to reorder.

Returns

ordered bits.

Return type

List