Docstoc

Lab 4 Content Overview

Document Sample
Lab 4 Content Overview Powered By Docstoc
					     Lab 9 Overview

     Lab 9 Grading

     Lab 10 Content Overview




4/18/2011         ECEN 248 Lab Spring 2008 Aaron Hill   1
     Design 1
           There is no implementation, Just produce the state
            diagram for a Moore machine implementation
     Design 2
           There is no implementation. Jus produce the state
            diagram for a Mealy machine implementation
     Design 3
           Pick a machine type (Mealy or Moore) and then
            implement the design completely.
     Design 4
           Extra Credit (20 Points)

4/18/2011                 ECEN 248 Lab Spring 2008 Aaron Hill    2
     Forget about Dimming the lights. I am
      removing that as a requirement for design 4.
     You may choose a max of 2 features to
      implement. Each feature is worth 10 bonus
      points
        Headlights
        Speedometer (using the 7 segment display)
        Gas Gauge (using the 7 segment display)
        Arrow Signaling
     This will NOT need to be included in your
      prelab report!
4/18/2011             ECEN 248 Lab Spring 2008 Aaron Hill   3
     The demonstration is worth 50 points total

     do nothing (10 points)
     left turn (10 points)
     right turn (10 points)
     brake (10 points)
     hazard (10 points)
     You may get a max of 70 points if you
      implement the bonus features

4/18/2011          ECEN 248 Lab Spring 2008 Aaron Hill   4
     How to refer to your 7 segment display
      module.
     The device that lights up on the board is a 7
      Segment Display
     The logic device you implemented is a 7
      Segment Decoder
     Thus:
        “I connected my outputs to my 7 segment decoder to
         produce the result on the 7 segment display”
        “I will need to use two 7 Segment Decoders to
         produce my results on the 7 Segment Displays”

4/18/2011            ECEN 248 Lab Spring 2008 Aaron Hill      5
     Objective:
           Use the techniques we have learned in this semester
            to develop a game of LED Pong.
     Lab Duration
           Till the end of the semester
     Reminder of Due Date
           April 29th 9:00 PM




4/18/2011                 ECEN 248 Lab Spring 2008 Aaron Hill     6
     Two players
        One on the left-hand side,
        One on the right-hand side.

     Two inputs (Push Buttons)
           Each player controls one push button
     Eight Outputs (LED lights)
        Four on the left-hand side
        Four on the right-hand side.




4/18/2011                ECEN 248 Lab Spring 2008 Aaron Hill   7
     We use 8 LED lights for 8 outputs.
     At any moment in time
        only one LED light can be on
        all other lights must be off
        The LED light which is on represents the “ball”.

     Two players use the push buttons to “hit” the
      ball such that the ball will go back and forth
      between the two players.
     One player will score 1 point when the other
      player fails to hit the ball at the right time.
4/18/2011             ECEN 248 Lab Spring 2008 Aaron Hill   8
                             Left Player Serves/Returns
                                                                    Hit button when this LED is on
                                                                    to make a successful return




                              Right Player Returns/Serves
Hit button when this LED is on
to make a successful return
    4/18/2011                 ECEN 248 Lab Spring 2008 Aaron Hill                             9
     Game Dynamics in Work




4/18/2011        ECEN 248 Lab Spring 2008 Aaron Hill   10
     One player serves the ball.
     If the player on defense hits the ball at the
      correct time, the ball goes back.
     If the player on defense hits the ball at the
      wrong time, he loses and the winner will serve
      again.

     Wrong Time:
           When the player hits the button either after or
            anytime before the last LED is lit.
4/18/2011                 ECEN 248 Lab Spring 2008 Aaron Hill   11
     Design 1 (35 points)

     Design 2 (15 points)

     Designs 3 (Bonus, maximum 20 points)




4/18/2011          ECEN 248 Lab Spring 2008 Aaron Hill   12
     Design 1:
           The basic pong game as described previously

     Design 2:
           Add a score board feature that tracks the score of each
            player
           The score for the left player will be displayed on the left 7
            Segment Display and the right players score on the right
            Display
     Design 3 (Extra Credit):
           Add a dynamic speed to the hitting of the ball, depending
            on the time the button is pushed, the ball will travel faster
            of slower.
4/18/2011                  ECEN 248 Lab Spring 2008 Aaron Hill              13
     If you implement Design 3 you will receive 20
      bonus points
     You will not need to include this design
      implementation in your lab report.

     Design 4 is not required and no extra credit
      will be given.




4/18/2011           ECEN 248 Lab Spring 2008 Aaron Hill   14
     You can use the following devices/techniques
      to implement the ball traveling:
        FSM
        8-Bit Bidirectional Shift Register 74198
        Counter with a Decoder
        And much much more!




4/18/2011              ECEN 248 Lab Spring 2008 Aaron Hill   15
     If you decide to use a state machine, please be
      aware of the following problems:
           The push buttons only generate a pulse.
           Once you push the button, the input must remain
            asserted until the next rising clock edge (until the next
            state transition).
           Since pushbuttons do not work in this manner, you will
            have to use a self-resetting latch to hold the pushbutton
            value until the next rising clock edge.
           You can use an SR latch and a D Flip Flop in the
            following way: attach the Q latch output to the flip-flop
            input and attach the flip-flop output to the Reset latch
            input.

4/18/2011                  ECEN 248 Lab Spring 2008 Aaron Hill          16
     Self-Resetting SR Latch




4/18/2011          ECEN 248 Lab Spring 2008 Aaron Hill   17
   QUIZ NEXT WEEK!!!!!!
   QUIZ NEXT WEEK!!!!!!
   QUIZ NEXT WEEK!!!!!!
   QUIZ NEXT WEEK!!!!!!
     Covers labs 6 – 9
4/18/2011   ECEN 248 Lab Spring 2008 Aaron Hill   18

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:4
posted:4/18/2011
language:English
pages:18