Problem 1 modify the state diagram branching conditions in

Assignment Help Electrical Engineering
Reference no: EM13351152

Problem 1. Modify the state diagram branching conditions in the diagrams below as needed to ensure the sum and exclusion rules are obeyed in each case. You can add a holding conditions or change branch codes as desired.

620_Modify the state diagram branching conditions.png

Problem 2. A vending machine should SELL an item if 30 cents is input. The machine has a coin sensor that can detect nickels, dimes, and quarters, and reject everything else. No change is given (i.e, if two quarters are input, simply assert SELL and keep the fifty cents). Sketch a state diagram to assert SELL when adequate coinage has been inserted.

 

Problem 3. Create a state diagram for a machine that can control a 4-button digital combination lock mechanism, unlocking only if the sequence B0-B3-B1 is detected.

Problem 4.  Sketch a circuit for the state machines below.

409_Modify the state diagram branching conditions1.png

Problem 5. Sketch a state diagram based on the following Verilog Code  

module fsm (

    CLK, RST, X, Y, Z, RED, BLUE);

 input CLK, RST, X, Y, Z;

output reg RED, BLUE;

 localparam S1 = 2'd0;

localparam S2 = 2'd1;

localparam S3 = 2'd2;

localparam S4 = 2'd3;

 reg [1:0] ps, ns;

 always @ (ps, x, y, z)

begin

case (ps)

    S1: begin

        RED = 1'b0;

        BLUE = 1'b0;

        if (X == 1'b0) ns = S1;

        else ns = S2;

    end

    S2: begin

        RED = 1'b0;

        BLUE = 1'b1;

        if (X == 1'b0 && Y == 1'b0 && Z == 1'b0) ns = S2;

        else if (X == 1'b1 || Y == 1'b1) ns = S1;

        else if (Z == 1'b1 && X == 1'b0 && Y == 1'b0) ns = S3;

    end

    S3: begin

        RED = Y;

        BLUE = 1'b0;

        if (Y == 1'b1 && X == 1'b0 && Z == 1'b0) ns = S4;

        else if (X == 1'b0 && Y == 1'b0 && Z == 1'b0) ns = S3;

        else if (X == 1'b1 || Z == 1'b1) ns = S1;

    end

    S4: begin

        RED = 1'b1;

        BLUE = X;

        ns = S1;

    end

    default: begin

        RED = 1'b0;

        BLUE = 1'b0;

        ns = S1;

    end

endcase

end

always @ (CLK, RST)

begin

if (RST == 1'b1) ps <= S1;

else ps <= ns;

end

 endmodule

Problem 6.  Assign state codes to the state diagrams below, using unit-distance coding and/or matching state codes to outputs

1938_Modify the state diagram branching conditions3.png

Reference no: EM13351152

Questions Cloud

Q1 as part of a safety investigation two 1300kg cars : q1. as part of a safety investigation two 1300kg cars traveling at 18ms are crashed into different barriers. find the
Below are seven statements related to the observation that : below are seven statements related to the observation that many songbirds learn to sing their species song instead of
- write your own transformational story your : - write your own transformational story. your transformational experience can be about adversity but it does not
Analyze case study - the cliptomania web storeshow the : analyze case study - the cliptomania web storeshow the strategic issues faced by the company in launching and
Problem 1 modify the state diagram branching conditions in : problem 1. modify the state diagram branching conditions in the diagrams below as needed to ensure the sum and
From the it distribution point of view how do you believe : from the it distribution point of view how do you believe that information sharing could lead to a reduction of lead
1 introductionthe groundwater level has risen and now is : 1. introductionthe groundwater level has risen and now is present in the cut. answer the following questions. show
Address the following scenario providing two distinct : address the following scenario providing two distinct options and arguing the benefits and costs of each. you are the
You are the secretary for a large church you have a : you are the secretary for a large church. you have a database with over 5000 names addresses and telephone numbers.a

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Find the spectrum of the signal of natural sampling

find the spectrum of the signal s(t) that results from the use of natural sampling,assuming that time t=0 corresponds to the midpoint of a rectangular pulse in c(t). show that the original signal m(t) may be recovered exactly from its naturally sa..

  Derive equations for the electric flux density for all ?

Given a coaxial cable with solid inner conductor of radius a, an outer conductor that goes from radius b to c (so c>b>a), a charge +Q that is assumed evenly distributed throughout a meter length of the inner conductor

  How is the effect of frequency-selective fading

How is the effect of frequency-selective fading on basic OFDM signaling and what techniques can one use in OFDM to overcome fading?

  Design 3 stage amplifier with the input signal

Design 3 stage amplifier with the following requirement input signal = 5 mV with R=10k ohms over all gain > 1000 power supply: Vcc = 5V, Vee = -5V Rin > 1 Mega Ohms Rout = 100 ohms 1st Stage BJT must use inverting

  Explain what are the main characteristics of the core

What are the main characteristics of the core : 1) of a step-index multimode optical fiber 2) of a graded-index multimode optical fiber 3) of a single mode optical fiber

  Define mfile window the height and distance traveled

Using the mfile window the height and distance traveled by a ball thrown at an angle A and with a speed v is: [h(t) =vtsin(A)-0.5gt^2] , [x(t)=vtcos(A)].

  Find the fourier coefficients of the exponential form

a.) find the fourier coefficients of the exponential form b.) find the fourier coefficients of the combined trigonometric form c.) plot both the single sided and double sided amplitude and phase spectra

  Explain the four main kinds of partial reinforcement

1. Explain the basic principles of classical conditioning using an experiment to illustrate how the principles are used. 2. In the operant conditioning school of behaviorism, what is partial reinforcement. Explain the four main kinds of partial rein..

  Determine the generated voltage and the kw rating

A four pole DC machine has a wave winding of 300 turns. The flux per pole is .025 webers. The DC machine rotates at 1000 RPM. Determine the generated voltage and the kW rating if the current through the turn is 25 amps.

  Calculate the turn ratio of the output transformer

Audio amplifiers use transformer coupling between the final amplifier stage and a speaker to match impedances and in order to avoid having DC current of the final stage flow through the speaker coil. We wish to connect an 8 Ω speaker to an 8000 Ω ..

  Show that the electric field at point p makes an angle

A semi-infinite nonconducting rod is located on the x-axis from x=0 to x=infinity. The rod has a uniform charge per unit length (lamda). Show that the electric field at point P:(0,-R) makes an angle of 45 degrees with the rod

  Find magnetic flux through curved side of circular cylinder

In the region of space for which x > 0, the x-component of a steady magnetic field is described by Bx = bx^2 where b is a positive constant that has dimensions of T/m^2. (a) Which of Maxwell's equations implies this cannot be the only component of ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd