GamePal VHDL Code
VHDL Code For the Gamepal:
GAMEPAL.VHD (main circuit controller)
KEYPAD.VHD (controls the 16 key (4x4) keypad)
VIDEO.VHD (controls the output to the VGA monitor)
DICE.VHD (The dice roller function)
MINTIME.VHD (One minute count-down timer)
MIN3TIME.VHD (Three minute count-down timer)
MIN5TIME.VHD (Five minute count-down timer)
Other Required Files (all of these are memory initialization files):
Special thanks and recognition should be given to Jim Hamblen or Georgia Tech School of Electrical and Computer Engineering. The display engine and character set were supplied by him and can be found here.
The code should be compiled using Altera Max+Plus II software. All of the above files are required in order to correctly compile the GamePal. In order to make the GamePal work on the UP1 education development board you must make the following pin assignments:
Name |
Type |
Number |
Description |
Blue |
Output |
238 |
Used for VGA. Displays Blue Color. |
Green |
Output |
237 |
Used for VGA. Displays Green Color. |
Red |
Output |
236 |
Used for VGA. Displays Red Color. |
Horiz_sync |
Output |
240 |
Used for VGA. Synchronizes horizontal. |
Vert_sync |
Output |
239 |
Used for VGA. Synchronizes vertical. |
Clock |
Input |
91 |
Global clock for the GAMEPAL. |
pinA |
Output |
120 |
Connects keypad pin A. |
pinB |
Output |
118 |
Connects keypad pin B. |
pinC |
Input |
116 |
Connects keypad pin C. |
pinD |
Input |
114 |
Connects keypad pin D. |
pinE |
Input |
119 |
Connects keypad pin E. |
pinF |
Input |
117 |
Connects keypad pin F. |
pinG |
Output |
115 |
Connects Keypad pin G. |
pinH |
Output |
113 |
Connects keypad pin H. |
LSB_a |
Output |
6 |
Segment A of the LSB on LED Display. |
LSB_b |
Output |
7 |
Segment B of the LSB on LED Display. |
LSB_c |
Output |
8 |
Segment C of the LSB on LED Display. |
LSB_d |
Output |
9 |
Segment D of the LSB on LED Display. |
LSB_e |
Output |
11 |
Segment E of the LSB on LED Display. |
LSB_f |
Output |
12 |
Segment F of the LSB on LED Display. |
LSB_g |
Output |
13 |
Segment G of the LSB on LED Display. |
MSB_dp |
Output |
25 |
Decimal Point of the MSB on LED Display. |
MSB_a |
Output |
17 |
Segment A of the MSB on LED Display. |
MSB_b |
Output |
18 |
Segment B of the MSB on LED Display. |
MSB_c |
Output |
19 |
Segment C of the MSB on LED Display. |
MSB_d |
Output |
20 |
Segment D of the MSB on LED Display. |
MSB_e |
Output |
21 |
Segment E of the MSB on LED Display. |
MSB_f |
Output |
23 |
Segment F of the MSB on LED Display. |
MSB_g |
Output |
24 |
Segment G of the MSB on LED Display. |
MSB_dp |
Output |
25 |
Decimal Point of the MSB on LED Display. |
The above pin assignments only apply to the Altera FLEX10K20 chip (EPF10K20RC240-4), which is the one located on the UP1 development board.
This page was last updated April 8, 1998: 17:00h