Skip to content

Implementation of the game "Simon" using the Zybo-Z7 development board.

Notifications You must be signed in to change notification settings

takatz28/Simon-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simon

This project is an implementation of the game "Simon" using the Zybo Z7-20 development board. Written in both VHDL and Verilog, the project features buttons, lights, and sounds that emulates the experience of the actual Simon game.

Features

  • Skill Select
    • S1: Sequence of length 8
    • S2: Sequence of length 14
    • S3: Sequence of length 20
    • S4: Sequence of length 31
  • More than 500,000 unique sequence combinations for a fair gameplay.

Requirements

  • Software
  • Hardware
    • Zybo Z7-20 Zynq-7000 Development Board
  • Peripherals
    • PMOD seven-segment display (SSD)
    • Two passive buzzers
    • microSD card with less than 16GB capacity (optional)
To boot Simon through the SD card:

Once the source files are extracted, copy the contents of the sdcard folder in the microSD card. Afterwards, insert it into the port underneath the Zybo board. Before turning the board on, make sure that the JP5 jumper is set to SD. When the board is finally powered on, the game loads into idle mode.

To load the project:
  1. Open Vivado 2019.1.
  2. Using the tcl console, type the following:
cd <change to extracted_folder>/<verilog or vhdl>
source ./Simon_VHDL.tcl # if using the VHDL IPs, or
source ./Simon_Verilog.tcl # if using the Verilog IPs
  1. Create a new HDL wrapper for the block design.
  2. Run synthesis and implementation, then generate the bitstream.
  3. Go to File > Export > Export Hardware. Make sure that the "Include Bitstream" box is marked.
  4. Go to File > Launch SDK.
  5. Once the SDK is launched, go to File > New > Application Project.
  6. Fill up the form with the following details:
Field Value
Project Name "Your preferred name"
OS Platform Standalone
Hardware Platform design_1_wrapper_hw_platform_0
Processor ps7_cortex a9_0
Language C
  1. Click on Next, select the Empty Application template, then click Finish.
  2. Copy the contents of sdk_files into the src folder under "Project Name".
  3. Under Project Explorer, right-click on the project folder, click on C/C++ Build Settings.
  4. Under Libraries, click on Add, then type m.
  5. Program the FPGA.
  6. Right-click on the project folder, click on Run As > Launch On Hardware (GDB).

About

Implementation of the game "Simon" using the Zybo-Z7 development board.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published