bitrange
Bitrange, or bit range, refers to a contiguous sequence of bits within a larger binary word. The range is defined by a high and a low index, and its width is high minus low plus one. Bitranges are used to reference, extract, or modify specific fields inside a word, such as a status flag, a counter, or a protocol field.
Notation and languages vary. In Verilog, a bit range is written as [MSB:LSB], for example reg [31:0]
Typical operations include extracting a field by masking and shifting, for instance field = (word >> low) & ((1
Endianness affects byte order across multiple words but does not change the internal bit numbering within