🔢 Digital Encoder
Binary encoder, priority encoder, and BCD-to-7-segment decoder with truth tables and Verilog.
Binary Encoder
Priority Encoder
BCD → 7-Segment
Inputs:
4-to-2
8-to-3
Input (click to toggle)
Exactly one input should be high for binary encoding.
Output
Truth Table
Verilog
Copy
Inputs:
4-to-2
8-to-3
Input (click to toggle — highest wins)
Multiple inputs can be high — encoder picks the highest index.
Output
Valid:
0
Truth Table
Verilog
Copy
BCD Input (click to change digit)
0
Truth Table
Verilog
Copy