subject
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.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
You know the right answer?
Atypical slot machine is shown to the left. it is a game of chance is which the player initiates the...
Questions
question
Mathematics, 16.12.2021 18:40
question
Mathematics, 16.12.2021 18:40
question
Social Studies, 16.12.2021 18:40
Questions on the website: 13722363