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.
- 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.
- Software
- Vivado Design Suite 2019.1
- 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:
- Open Vivado 2019.1.
- 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
- Create a new HDL wrapper for the block design.
- Run synthesis and implementation, then generate the bitstream.
- Go to File > Export > Export Hardware. Make sure that the "Include Bitstream" box is marked.
- Go to File > Launch SDK.
- Once the SDK is launched, go to File > New > Application Project.
- 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 |
- Click on Next, select the Empty Application template, then click Finish.
- Copy the contents of
sdk_files
into thesrc
folder under "Project Name". - Under Project Explorer, right-click on the project folder, click on C/C++ Build Settings.
- Under Libraries, click on Add, then type
m
. - Program the FPGA.
- Right-click on the project folder, click on Run As > Launch On Hardware (GDB).