Clock, Buttons, Switches, and Seven Segment Displays
The Flex EPF10K70RC240-4 FPGA on the right side of the UP2 logic kit is connected to two seven segment displays, (“Left Digit” and “Right Digit”), eight “dip” switches (“Switch 1” through “Switch 8”) located in a red switch block, and two push buttons (“Flex PB1” and “Flex PB2”).
The dip switches produce logic “1” when pressed down, the push buttons produce logic “0” when pressed, and the segments of the seven segment displays light up when connected to logic “0”. The following table shows which FPGA pin numbers are connected to these devices:
Connection | Pin Name |
---|---|
25.175 MHz Clock | PIN_91 |
PB 1 | PIN_28 |
PB 2 | PIN_29 |
Switch 1 | PIN_41 |
Switch 2 | PIN_40 |
Switch 3 | PIN_39 |
Switch 4 | PIN_38 |
Switch 5 | PIN_36 |
Switch 6 | PIN_35 |
Switch 7 | PIN_34 |
Switch 8 | PIN_33 |
Left Digit, Segment A | PIN_6 |
Left Digit, Segment B | PIN_7 |
Left Digit, Segment C | PIN_8 |
Left Digit, Segment D | PIN_9 |
Left Digit, Segment E | PIN_11 |
Left Digit, Segment F | PIN_12 |
Left Digit, Segment G | PIN_13 |
Left Digit, Decimal Point | PIN_14 |
Right Digit, Segment A | PIN_17 |
Right Digit, Segment B | PIN_18 |
Right Digit, Segment C | PIN_19 |
Right Digit, Segment D | PIN_20 |
Right Digit, Segment E | PIN_21 |
Right Digit, Segment F | PIN_23 |
Right Digit, Segment G | PIN_24 |
Right Digit, Decimal Point | PIN_25 |