wire / wire-format / decoder

Decoder / demultiplexer

A decoder converts an n-bit binary input to a one-hot output (2^n outputs, exactly one is 1). A 2:4 decoder: outputs D0-D3, where D[i] = 1 if input = i. Demultiplexer (DEMUX) routes a single input to one of 2^n outputs based on select bits. Decoders are used for address decoding, instruction decoding, and one-hot state machines.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: Decoder / demultiplexer

wire format

spec: Digital logic design

A decoder converts an n-bit binary input to a one-hot output (2^n outputs, exactly one is 1). A 2:4 decoder: outputs D0-D3, where D[i] = 1 if input = i. Demultiplexer (DEMUX) routes a single input to one of 2^n outputs based on select bits. Decoders are used for address decoding, instruction decoding, and one-hot state machines.

fieldsizemeaning
2:4 decoder2 inputs, 4 outputsOutput i = 1 if input = i. E.g., input 10 -> D2 = 1, others 0.
3:8 decoder3 inputs, 8 outputsOutput i = 1 if input = i. Used for octal selection.
n:2^n decodern inputs, 2^n outputsGeneral: n-bit input to 2^n one-hot outputs.
Decoder with enablen+1 inputsEnable input gates all outputs (when E=0, all outputs are 0).
DEMUX1 data + n selectRoutes data input to one of 2^n outputs based on select bits.
Priority encoder2^n inputs, n outputsReverse of decoder: outputs the binary code of the highest-priority active input. Used for interrupt priority.

example:

00 00

Decoder (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/decoder or /wire-format/decoder.json