Skip to content

Bit Extract ​

Extracts a single bit from an integer signal: out = (in >> bit_index) & 1. Useful for picking individual flags out of a status word.

Category: Digital Logic / Bits

Ports ​

NameDirectionValue typeNotes
ininputint
outoutputint

Parameters ​

NameLabelTypeDefaultUnitsDescription
bit_indexBitint0—Bit position to extract (0 = LSB). Result is 0 or 1: out = (in >> bit_index) & 1.