What is One-hot encoding?

State encoding that assigns one flip-flop per state with exactly one set at a time. Logic tends to be simple and fast, and it is common on FPGAs.

Field: HDL & Verification

One-hot encoding in the explanations

Questions that mention One-hot encoding (2)

  1. What is a characteristic of one-hot encoding for state machine states?
  2. For a state machine with three states, how many flip-flops are needed to store the state (binary encoding / one-hot encoding)?

Related terms

Flip-flop Asynchronous reset Blocking assignment Combinational loop Constrained random verification Four-state logic Gate-level simulation Generate statement Hardware description language (HDL) Lint tool

Back to the glossary