SIMON Presented By: Amanda Buczkowski James Jenkins Fadi Hanna

Preview:

Citation preview

SIMON

Presented By:Amanda Buczkowski

James JenkinsFadi Hanna

HOW DO YOU PLAY THE GAME:

1. Flip switch one to reset the game.

2. Push button 1 to start a game.

3. In level one, a random LED between 5 and 8 will light, delay, and then turn off. The player must press the corresponding button.

4. The game then moves on to level two where two random LED’s will light and the playermust press the buttons in that sequence. A correct answer will light LED’s 5-8 , and an incorrect answer will light LED’s 1-4.

5. The process of following the sequence with the corresponding button will continue untilthe fourth and final level is reached UNLESS at anytime during the game a wrong button ispushed. This will terminate the game, and cause the player to reset and start over.

switches

7-segment displaysLEDs

pushbuttons

Correct ChoiceIncorrect Choice

1st Button to Start the Game

1st switch to reset the game

THEN, ALL 8 LEDS WILL LIGHT AFTER ALL 4 LEVELS HAVE BEEN SUCCESSFULLY COMPLETED

ReturnStack

RmuxPmux

PCclrclk

pload

pinc

IRclrclkirload

W8Y_rom

W8Y_control

plus1

R

DS

Rin

R T

P

Pin

M

M P1

R

M

SW(1:8)

LDreg

LD(1:8)

T

ldloadclkclr

step_display

A(3:0) AtoG(6:0)

clk

clr

TN

BTN(1)

BTN(4)

clr

step

The W8YMicrocontroller

clkclr

rpop

rpush

psel rinsel

dssel(1:0)

rload

rdec

rsel

T

icode

E

BTN(1:4)

DataStack_ALUclkclr

dpop

dpush

ssel

nloadnsel

tload

tsel(1:0)

alusel(3:0)

T

0 11

1

0

0 2 3DSmux

Button clrclk

clr

clkRandom

BTN

Pushed

THE WHITE WORDS AND THE RED BLOCKS ARE THE EXTRAS WE ADDED TO OUR PROJECT, EVERYTHING ELSE IS SAME AS LAB 9

SW1

SW4

This is the BUTTON.VHD file we created

This is part one for the RANDOM.VHD

This is part two for the RANDOM.VHD

This is the main program (PROJECT.VHD)

This is the instructions we added for the W8Y_CONTROL

This is the instructions we added for the W8Y_CODES