Useful VHDL Code - LED

As many people are going to use LED, we will give out our VHDL code for the LED so that others can use it.

Things to Note

  1. The decoding from binary number to 7 segments are done internally, i.e. all done by VHDL (recommended by the professor). This means that we will have 7-bit output from the Actel chip directly connected to the LEDs and do not need to have any external BCD-7_segment decoder.
  2. We will connect the LED externally to 5V. In this way, when we output a "0" to a particular segment, that segment will be on and vice versa.
  3. Here, we have included 2 entities:

Author:

  • Cheong Wong
  • Norman Chan