A company asks you to design a controller for a basketball
machine that will indicate that a
player has won a game if they get a total of 3 points. There are
two sensors in this machine. One
in the backboard and on the inside of the orange rim. If a player
shoots a shot and the ball hits the
backboard and the ball goes through the rim, then the play will
gain 1 point. If the player shoots
the ball and it doesn't hit the backboard and the ball just goes
through the rim, then the play will
gain 2 points. If the player hits the backboard and the ball does
not go through the rim, then the
player will lose 1 point. The total score can only go down to zero
and cannot become negative. If
the ball does not go through the rim or hit backboard, then it will
count as a no shot and nothing
will happen. Once the player scores three points, the game ends,
and a light will indicate that the
player has won.
Assumption: The backboard and rim sensor are read on the same clock
cycle.
Be sure to use the debounced pushbuttons for driving the clock
input to the flip-flops in
your hardware design.
All information to complete this design may not be specified. Write
down and report any
assumptions that you make in your design
Get Answers For Free
Most questions answered within 1 hours.