Objective The object of the game is to convert as many hexadecimal numbers to binary coded decimal numbers correctly within thirty (30) seconds. How.

Slides:



Advertisements
Similar presentations
Phase 2 -- Logic Implementation & Simulation Switching & Logic Design Project.
Advertisements

EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
LED Display. LED Typical LED forward bias voltage: 1.5 to 2.0 V Typical currents needed to light LED range from 2 to 15 mA.
VHDL revision 15a1 VHDL revision. VHDL revision 15a2 Q1 A clocked 4-to-2-bit encoder circuit (with synchronous reset) has the following interfaces: RESET:
A Simple Microcontroller VHDL Tutorial R. E. Haskell and D. M. Hanna T6: VHDL State Machines.
Data Stack Lecture 8.2 A VHDL Forth Core for FPGAs: Sect. 3.
Return Stack Lecture 8.4 A VHDL Forth Core for FPGAs: Sect. 5.
Lab 6 Program Counter and Program ROM Mano & Kime Sections 7-1 – 7-6.
You Asked for It… Design Using the Z-World. Next Week In DIG II  Timers and counters  Watchdog timers  UART (Universal asynchronous receiver / transmitter)
Return Stack Lecture L7.3. A 32 x 16 Stack Same as used in the Data Stack in Lab 7.
Getting the O in I/O to work on a typical microcontroller Ideas of how to send output signals to the radio controlled car. The theory behind the LED controller.
Programming Example Lecture 8.6 A VHDL Forth Core for FPGAs: Sect. 7.
Lab 3 & 4 Discussion EE414/514 VHDL Design September 25.
Getting the O in I/O to work on a typical microcontroller Activating a FLASH memory “output line” Part 1 Main part of Laboratory 1 Also needed for “voice.
RS-232 Port Lecture L9.3. Loop feedback RS-232 voltage levels: +5.5 V (logic 0) -5.5 V (logic 1)
Data Stack Instructions Lab 7. Data Stack WHYP Data Stack Instructions DUP( n -- n n ) SWAP( a b -- b a ) DROP( a -- ) OVER( a b -- a b a ) ROT( a.
Motor Control of an Oscillating Pendulum Nick Myers and Chirag Patel March 9, 2004 Advised by: Dr. James Irwin and Mr. Jose Sanchez Bradley University.
Other WC16 Instructions Lecture L7.4. OpcodeNameFunctionNumber of Clock Cycles Fetch the byte at address T in RAM and load it into T1 Fetch.
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
Capacitance Sensor Project
Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.
Writing an Assembly-language program Atmel assembly language CS-280 Dr. Mark L. Hornick 1.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
1 CS/COE0447 Computer Organization & Assembly Language Pre-Chapter 2.
Programmable Logic Controllers
SAP1 (Simple-As-Possible) Computer
LAB 9 Finite State Machine (FSM) Ui Luu Glendale Community College Bassam Matar Chandler-Gilbert Community College.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Programming PLCs using LADDER Logic
Vintage Computer Hardware 101 Featuring the MITS Altair 680b Bill Degnan.
Last week’s project demos RC circuit with creative use of 7- segment display Demo in class tonight – don’t start on the next project until I’ve seen this.
The Cisco Binary Game INSTALLING THE GAME Extract Set-up File Double click Binary_setup.zip Save to computer Launch Set-up Click binary_setup.exe Follow.
CascadedBCDCntr&Display Aim : Capture, simulate and implement a 2-digit, loadable BCD up/down counter, with chip enable I/P (CE) and chip enable O/P (CEO).
Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska.
Reaction Timer Project
Microcontrollers Module 3: Digital Display. 7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display.
Instructor: Alexander Stoytchev
Danielle Roy.  The goal of this project is to create an emulation of a popular children’s game. This game flashes a pattern at the player, and the player.
SIMON Presented By: Amanda Buczkowski James Jenkins Fadi Hanna.
Digital Electronics Board Game Counter Analog. Board Game Counter Demo - Analog 2 This presentation will Review the Board Game Counter block diagram.
Electronics Merit Badge Class 3 1/17/2016 Electronics Merit Badge Class National Scout Jamboree 1.
8421 Binary Hexadecimal Seven segment display 8421 Welcome to the Binary Hex Clock 1.The Display shows the Hexadecimal Values going up from 0 to F 2.Unfortunately.
8421 Binary Hexadecimal Seven segment display 8421 Binary Hexadecimal Seven segment display 0000.
Board Game Counter - Analog
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
MACHINE CYCLE AND T-STATE
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Electronics Merit Badge Class 3 3/13/2016Electronics Merit Badge Class 31.
Department of Electronic & Electrical Engineering Lecture 4. ➢ Loops ➢ Delays ➢ Conditional instructions ➢ Simple clock example.
George Mason University ECE 448 – FPGA and ASIC Design with VHDL VGA Display Part 5 The Complete Pong Game ECE 448 Lecture 13.
SAP1 (Simple-As-Possible) Computer
TIMING DIAGRAM OF 8085 By Sadhish Prabhu.
Revision2 for CENG34340 (Self study exercise no need to submit)
Instructor: Alexander Stoytchev
You have 5 minutes to look over your table of sensor and outputs ready for a spot check on the different symbols Start Timer 5 mins
CPU Sequencing 6/30/2018.
Instructor: Alexander Stoytchev
ECE 434 Advanced Digital System L13
Fast, Asynchronous SRAM
Introduction to Sequential Circuits
DIO2 Board Projects.
ECE 448 Lab 3 – Part 1 FPGA Design Flow Based on
Welcome to Jeopardy!.
ECE 448 Lab 3 – Part 1 FPGA Design Flow Based on
Ladder programming Counter Instruction S7 300
CPU Sequencing 7/20/2019.
Return Stack Lab 8.
Presentation transcript:

Objective The object of the game is to convert as many hexadecimal numbers to binary coded decimal numbers correctly within thirty (30) seconds. How to Play To begin play press Button 4. The clock will begin and a value will be displayed. Enter the displayed value on the switches. Zero is towards the top of the game board and one is towards the bottom of the game board. The player has 30 seconds to convert as many numbers as possible. At the end of the 30 seconds, the player’s score will be displayed. If it is the new High Score “HI” will appear next to the player’s score. If it is not the new High Score then “00” will appear next to the player’s score. To display the High Score press Button 3. To clear the High Score Memory, press Button 2.

Continually cycles through 00-FF at each rising edge of the clock. When the game is started or a value gets checked, the random number output at that instant is displayed on the 7-segment display as the new hex value. Randomhex Module

This module sends W8Y_control the BTN2 signal, taking into account OutOfTime. This changes the button operations in different states. BTNcontrol Module

Checks the random hex value against the switch value Only checks when BTN1 is pressed during the game -Controlled by chkload, which is controlled by W8Y_control If the values are equal, then the score is incremented. If they are not equal, the score remains unchanged. Check Module

Score = 1 Score = 0Score = 1 (unchanged)

The 30-second game timer. When time runs out, OurtOfTime goes high. The game timer is displayed in decimal. -This was accomplished by a case statement. Timer Module case time30 is when " " => time <= " "; --30 when " " => time <= " "; --29 … when others => time <= time30; --09to00 end case;

Timer Module elsif (clk = '1' and clk'event) then … elsif decenable = '1' then-- during game time490 <= time ; if time490 = " " then decimal time30 <= time30 - 1; time490 <= " "; end if; … Timer construction in VHDL.

Timer Module Actual hex values “Forced” decimal values OutOfTime goes low when timer is initialized and goes back to high when time runs out.

The running score is displayed as you play. For each correct answer, one LED lights up. Beginning with the 9 th correct answer, the LEDs turn off for each additional correct answer. ScoreLED Module

Three states for HexBinIQ: Main, Game, ShowHigh Main waits for BTN1 to start a new game, or you can press BTN3 to view the high score (ShowHigh). ShowHigh cannot be executed during the game. State Diagram: The ROM Main Game Show- High BTN3 = 0 BTN3 = 1 OutOfTime = 1 BTN4 = 1

There were seven new opcodes added to the set from Lab 9. New OpCodes -- New Data Stack Instructions constant swapNs: opcode := X"0B";-- Swap N, N2 -- New Return Stack, Conditional, and I/O instructions constant e1fetch: opcode := X"38";-- constant e2fetch: opcode := X"39";-- constant Tstore: opcode := X"3A";-- Tstore constant Nstore: opcode := X"3B";-- Nstore constant reset:opcode := X"3C";-- reset constant check:opcode := X"3D";-- Check

New OpCodes when E1fetch =>tsel <= "01"; tload <= '1'; dssel <= "11"; esel <= '0'; when E2fetch =>tsel <= "01"; tload <= '1'; dssel <= "11"; esel <= '1'; when swapNs =>nsel <= '1'; nload <= '1'; dpush <= '1'; dpop <= '1'; when Tstore =>tdload <= '1'; when Nstore =>ndload <= '1'; when Reset =>ResetSig <= '1'; when Check =>chkload <= '1'; The new opcodes defined in W8Y_Control.