You copied the Doc URL to your clipboard.

3.16. User switches and LEDs

The FPGA provides a switch and LED register that enables you to read the general-purpose pushbutton switch and user switches (S1) and light the user LEDs (located next to switch S1). See Figure 1.1 for the location of the switches and LEDs. Figure 3.29 shows the interface.

Set bits [7:0] in the SYS_LED register at 0x10000008 to illuminate LEDs 7-0. The state of the user switches is present on bits [7:0] of the SYS_SW register at 0x10000004. The state of the general-purpose pushbutton can be read from the SYS_MISC register.

Figure 3.29. Switch and LED interface

Switch and LED interface

Was this page helpful? Yes No