E PowerPoint PPT Presentation

presentation player overlay
1 / 11
About This Presentation
Transcript and Presenter's Notes

Title: E


1
ECE 223 Lab 3 Electronic Ping Pong Game
  • Fall 2007
  • David Li
  • d4li_at_engmail.uwaterloo
  • EIT 3148 x37434

2
Outline
  • Functionality
  • Behaviour
  • Things to Consider
  • Deliverables Demo and Report
  • Questions

3
Functionality
  • Electronic Ping Pong Game
  • Two Players (Left Right)
  • Display the ball position
  • Score Keeping
  • Selection of clock speed
  • Indication of service light
  • Game ends when a player scores 7 points

4
Functionality
  • Default service goes to the right player
  • LPAD or RPAD must be pressed when the ball
    position (i.e.) is at the leftmost or rightmost
    position
  • A point is scored when the player hits the ball
    too early or late
  • Player who won the point gets the next service
  • The score is only displayed when the game is not
    in play (i.e. Left or right service state or game
    over)

5
Behaviour
6
Behaviour
7
Behaviour
8
Things to Consider
  • Divide the internal clock accordingly to get the
    appropriate frequency
  • Design the state machine
  • Minimize the number of states
  • Determine appropriate inputs/outputs for state
    transition
  • Work with state diagram or transition table
  • Ball movement, reset, score display, and clock
    divider are not part of state machine

9
Things to Consider
  • Ball Movement
  • Implemented using shift register
  • Two control signals Direction Mode
  • Ball Movement
  • Counters are required to keep track of score

10
Deliverables - Report
  • Lab Submission Form Report Title Page
  • Formal Specifications of the Problem
  • VHDL Code (Appendix)
  • Simulation Waveforms and Command Files (Appendix)
  • Analysis in Maximum TWO pages
  • Problems Encountered
  • Debugging Approach
  • Improvements

11
Marking Scheme
Write a Comment
User Comments (0)
About PowerShow.com