VHDLBeginner
Testbench: 2-to-4 decoder (VHDL)
Verify one-hot decoding and the enable behavior.
Exercise objective
The DUT activates the output matching the input code when enabled.
Prerequisites
- Read signals and write assertions in a VHDL testbench.
- Understand the circuit under test: The DUT activates the output matching the input code when enabled.
Skills you will practice
- One-hot
- Enable
Equipment and tools
- The VHDL editor and validation are available in the browser. You do not need an FPGA board for this exercise.