Beginning FPGA Programming - Partie75
Beginning FPGA Programming - Partie75
Beginning FPGA Programming - Partie75
Figure 16-5 shows our setup for the connections of the 7 segment display. We are using 5k ohm resistor
for our setup. You can use a smaller resistor value which will give you brighter LEDs. This is because the
smaller the resistor value, the more current can pass though the 7 segment LEDs. When the FPGA GPIO pins
drive high, the LEDs on the 7 segment will light up.
370
Chapter 16 ■ Up in Lights: How to Drive LED Segment Displays
If you power up the BeMicro MAX10 FPGA, the 7 segment display may partially light up. It is because
any non-programed pin from FPGA may have lower than the 2.5V voltage come out from the pin. The next
section will create the VHDL design to actually driving it.
371
Chapter 16 ■ Up in Lights: How to Drive LED Segment Displays
372
Chapter 16 ■ Up in Lights: How to Drive LED Segment Displays
373
Chapter 16 ■ Up in Lights: How to Drive LED Segment Displays
In line 74, we use unsigned(data_in_reg) to convert the std_logic_vector to an unsigned value such
that we can compare it with 9.
374