HEX to seven segment decoder in VHDL
The seven segment display consists of 7 LED's which can be used to display number from 0 to 15 in hex format.
There is two types of seven segments, common anode and common cathode, the difference between these two types is that in a common anode seven segment, each LED segment is lit by logic 0, while in common cathode the LED segment is lit on by logic one.
In this post we are going to represent the hex to seven segment decoder for common anode seven segment display available similar to the display available on Nexys 4, Nexys Video and Basys 3 FPGA development boards.
VHDL code for seven segment decoder :
The code is tested on Basys 3 development board by using the switches to apply the hex input