---
title: Encoder (digital)
slug: encoder-digital
qid: 
snapshot: enwiki-001288212683
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1288212683
tags: [23118434, 23603337, 27179408]
---

# Encoder (digital)

> [!note] Provenance
> Snapshot `enwiki-001288212683` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1288212683> · Licensed CC BY-SA 4.0

An encoder (or "simple encoder") in digital electronics is a one-hot to binary converter. That is, if there are 2 n input lines, and at most only one of them will ever be high, the binary code of this 'hot' line is produced on the n-bit output lines. A binary encoder is the dual of a binary decoder. If the input circuit can guarantee at most a single-active input, a simple encoder is a better choice than a priority encoder, since it requires less logic to implement. However, a simple encoder can generate an incorrect output when more than a single input is active, so a priority encoder is required in such cases.

An encoder (or "simple encoder") in digital electronics is a one-hot to binary converter. That is, if there are 2 n input lines, and at most only one of them will ever be high, the binary code of this 'hot' line is produced on the n-bit output lines. A binary encoder is the dual of a binary decoder. If the input circuit can guarantee at most a single-active input, a simple encoder is a better choice than a priority encoder, since it requires less logic to implement. However, a simple encoder can generate an incorrect output when more than a single input is active, so a priority encoder is required in such cases. ==References==
