Home / Learn Verilog / 3-to-8 Decoder
3-to-8 Decoder
Eight one-hot outputs from three bits.
Bottom lineEight one-hot outputs from three bits.
Breaking it down
The basic idea
Same idea as 2:4 with more outputs.
Why this comes up
Memory chip select, instruction decode.
The mechanics
case or shift.
Where it is used
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
3:8 decoder with caseVerilog: edit and run
Default y=0 then set one bit.
Quick check
1. Decoder output is...
One line high.