Beruflich Dokumente
Kultur Dokumente
A. System Information
In this project, the system is design for single player or
Abstract— For this assignment, we tried to apply the multiplayer. The player control by using switch keypad 4x4
theory that we learned in Computer Architecture and Organisation in Universial 16 Key Switch Keypad Keyboard. Another player
this project. We tried to create tic tac toe game by using Altera DE2 will take turn to press the keypad switch port keyboard which
board as the main board and Arduino Uno as external board. This is connected directly into DE2 board. The tic tac toe game
assignment is required the students to understand about the output are LED that organized in 3x3 grid design and the LED
connection between the hardware and study about the function of will turn ON based on Player either Player 1 or Player 2.
every parameters of the program code written to obtain the desired Because of that this project work by combination of hardware
result. and software such as we using DE2 as the main LED, and
apply the coding (VHDL language) into the project as the
output. The DE2 board used as the main board of the project
I. INTRODUCTION and act as mini CPU to run the game itself. The language used
Tic Tac Toe (also known as noughts and crosses or Xs and for this project is VHDL language. The monitor will connect
Os) is a paper-and-pencil game for two players, and these to the DE2 board using VGA cable. As stated above, the
game is a version has evolved a bit since the original version output of Tic Tac Toe game is constructed on breadboard
in ancient Egypt. The technique playing this game is by based on 3x3 grid design. The Arduino Uno will act as
external board to connect with the Keypad Switch.. As for
marked either X and O, who take turns marking the spaces in Keypad Switch part, the keypad wires will connect to the pins
a 3×3 grid. The player who succeeds in placing three of their of the Arduino Uno. Next, the Arduino Uno will be connected
marks in a horizontal, vertical, or diagonal row wins the to DE2 board but it has to be connected through Serial Port
game[1].The player will press the button as to indicate the then connected to ICB-HSM. The figure 1 below shows the
position of grid, and the player will be difference by using system architecture of the project. At the end of this project,
different label or mark which is X and O. They can compete the Keypad Switch will act as input to press the location of
against another player by take turn by both player. The goal is Tic Tac Toe. The LED on breadboard will light ON and
player have to compete each other by complete one line.
for each player to complete one line grid and the first player
complete the line is the winner.This project focuses on build
the tic tac toe games by using DE2 board as the main board
and Arduino Uno as external board. The coding is in VHDL
language. The project can be single or multiplayer games and
use simple 2D graphics.
II. OBJECTIVE
The objectives of this project are:
• To build the tic tac toe games by using DE2 as the
main board and Arduino Uno as the I/O devices
• To perform the hardware connection of the project.
• To apply the coding (VHDL language) into the
project
III. METHODOLOGY
Methodology part will discuss briefly about the system
methods used to build the tic tac toe Games by using Altera
DE2 board. This section will divide by three parts which is
system information, flowchart and system code.
wire video_clock;
// convert CLOCK_27 to required clock speed
pll108MHz pll(.inclk0(CLOCK_27), .c0(video_clock));
wire candraw;
wire start; // 1 = beginning of frame
wire ball_on;
VI. CONCLUSION
In this project, the objective to build pong games system by
using Altera DE2 board is achieved. However, the failure to
connect Altera DE2 board with Arduino Uno disturb the flow
of this project. Besides that, the theory learned in Computer
Architecture and Organisation course can be applied in this
project either to perform connection of hardware or writing
code for the pong game system.
REFERENCES
[1]Tic Tac Toe (March 22, 2018), Retrived March 23 from
https://en.wikipedia.org/wiki/Tic-tac-toe
[2] Vigneshraja (August 16, 2014) “Pong Game Using FPGA Kit”,
Retrieved March 19, 2018 from http://www.instructables.com/id/Pong-
game-using-fpga-kit/
[3] Pong (2018) Github Inc, Retrieved April 13 from
https://github.com/felix mo/Pong
[4] Syntaxian (2018) “PC Mouse Made with Arduino and Jouystick”,
Retrieved April 29 from http://www.instructables.com/id/PC-Mouse-
Made-With-Arduino-Uno-and-Joystick/