7-Segment Displays

The DE2 Board has eight 7-segment displays. These displays are arranged into two pairs and a group of four, with the intent of displaying numbers of various sizes. As indicated in the schematic in Figure 1, the seven segments are connected to pins on the Cyclone II FPGA. Applying a low logic level to a segment causes it to light up, and applying a high logic level turns it off.

Figure 1. Schematic diagram of the 7-segment displays.

Each segment in a display is identified by an index from 0 to 6, with the positions given in Figure 2. Note that the dot in each display is unconnected and cannot be used. Table 1 shows the assignments of FPGA pins to the 7-segment displays.

Figure 2. Position and index of each segment in a 7-segment display.

A list of the pin names on the Cyclone II FPGA that are connected to the toggle switches, pushbutton switches and LEDs are displayed in Table 1.

Table 1. Signal assignments for the seven-segment displays.

Signal NameDescription
HEX0[6:0] seven-segment display digit 0
HEX1[6:0] seven-segment display digit 1
HEX2[6:0] seven-segment display digit 2
HEX3[6:0] seven-segment display digit 3
HEX4[6:0] seven-segment display digit 4
HEX5[6:0] seven-segment display digit 5
HEX6[6:0] seven-segment display digit 6
HEX7[6:0] seven-segment display digit 7

See DE2_pin_assignments.csv, a comma-delimited file that matches "standard" descriptive names to actual FPGA pin locations. This file can be directly opened in Microsoft Excel.


   DE2 User Manual, version 1.4, 2006. (pdf)

Maintained by John Loomis, last updated 18 April 2007