Engineering
Engineering, 21.11.2019 02:31, sugar1014

Atypical slot machine is shown to the left. it is a game of chance is which the player initiates the spinning of three separate displays and tries to stop the display motion at a time when all three display images match. a slot machine inspired game will use two seven segment displays in place of the three displays in the example. each slots royale sa seven-segment display will show one of four custom designed symbols. status information about the game will be shown in a third seven segment display. when a button is pressed, the two displays showing the game symbols begin to change at different rates. the displays continue to change as long as the button remains depressed. when the button is released, the symbols stop changing. the objective of the game is to try to stop when both displays show the same symbol. • a "win" symbol is shown in the status display if the two displayed symbols match when the button is released. • a "lose" symbol is shown in the status display if the two displayed symbols do not match when the button is released. • while the button is depressed and the symbols are changing, a neutral symbol appears in the status display to indicate that the game is in progress. the game has four speeds: test, slow, medium, and fast. at test speed the symbols change so slowly that it is easy to win and easy to test the function of the circuit. as the speed increases, the game becomes more challenging. the speed is selected using two input switches to specify the four possible sneeds. 2. design the circuit to create codes, the code for the game status symbols. a. write a verilog module my_status_code with two single bit inputs pb1 and eq. eq is 1 when the two game symbols are the same, and pb1 is 1 when the pushbutton is depressed. the logic circuit output is the 4-bit codes value (see 1bii above). from the problem statement description of the "win", "lose", and "in progress" displays, design the logic to generate the 4-bit value. i. how should the two most significant bits of the special symbol code be set? ii. write the logic expressions for the two least significant bits of the special symbol code. b. write a verilog module for my_status_code using continuous assignment. c. write another version of the verilog module using a case statement in an always block. d. write a third version using if-else statements in an always block.

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:20, hayleymckee
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
image
Engineering, 04.07.2019 19:10, brid7931
Aplate of dimensions 3 m x 3 m is placed 0.37 mm apart from a fixed plate. the plate requires a force of 2n to move at speed of 45 cm/s. evaluate the viscosity of the fluid in between the plates
Answers: 3
image
Engineering, 04.07.2019 19:20, sashajayne8260
Determine the stoichiometric and actual air-fuel ratios and the mole flue gas composition for combustion with 15% excess air for raw indiana, pennsylvania raw coal.
Answers: 3
image
Engineering, 05.07.2019 23:20, neisha2507
Which one of the following faults cause the coffee in a brewer to keep boiling after the brewing cycle is finished? a. an open circuit in the heating element b. a short circuit at the terminals c. welded contacts on the thermostat d. a leak around the gasket
Answers: 3
Do you know the correct answer?
Atypical slot machine is shown to the left. it is a game of chance is which the player initiates the...

Questions in other subjects: