Modify the state diagram branching conditions

Assignment Help Electrical Engineering
Reference no: EM135168

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: EM135168

Questions Cloud

What is the flux of zn moving down the rod : At 500°C, the diffusion coefficient of Zn in brass is 4.10-17 m2.s-1. What is the flux of Zn moving down the rod.
Demonstrate their brain quality to potential mates : When a tropical moth is touched on the thorax it lifts its forewings up abruptly, exposing its brightly coloured hind-wings. What causes the moth to behave this way? What significance can we attach to the fact that the verbal ability scores of ado..
Leadership and transformation : Explain yourself before your transformation experience. Explain your transformational experience (make sure this is an experience you are comfortable sharing).
Analyze case study - the cliptomania web store : Show the strategic issues faced by the company in launching and developing their e-business venture. Provide your recommendations and analysis.
Modify the state diagram branching conditions : Modify the state diagram branching conditions in the diagrams below as needed to ensure the sum and exclusion rules are obeyed in each case.
How to reduce mitigation : How do you believe that information sharing could lead to a reduction of lead times, and how would it be used to reduce its mitigation?
Evaluate the pressure head at point : Evaluate the pressure head at point a and determine the vertical effective stress at point b and evaluate the lateral pressurein the brown clay
Supply chain management problem : Providing two distinct options and arguing the benefits and costs of each. You are the Vice President for Transport of a medium-sized company.
What is the potential or resulting harm : What are the relevant facts? Which of these facts raises an ethical issue and what is the potential or resulting harm?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Analyzing the blink alive code

Analyzing the Blink Alive code - Embedded Systems Design

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Write the ybus matrix

Identify the bus types and the unknown variables of the power flow problem. Write the complete set of equations needed to solve the load flow problem.

  Electricity and circuit theory

Assessment on Electricity and Circuit Theory,  What part of a cable are insulators and conductors? Describe, in terms of charged particles, why some objects are electrically attracted to each other, while others repel each other?

  Ac analysis gain at midband with bypass capacitor

AC Analysis Gain at Midband (with bypass capacitor in circuit) Connect the bypass capacitor using the switch.

  Digital systems and microprocessors

Design a sequential system to continuously output your set of eight different digits (01275438) in binary at the rate of one digit per clock pulse.

  Compute the transfer function

In this project we will consider the control of a synchronous generator supplying electricity to the grid.

  Problem on transmission line operation

Evaluate the TL parameters. Include the effect of the earth as ideal. Do not incorporate the effect of the shield wires.

  Interface binary i/o devices to the microcontroller

Interface binary Input Output devices to the microcontroller

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Electronic discovery in civil actions

Explain and discuss the problems presented by electronic discovery in civil actions and how the law has responded.

  Explain scada system

Explain the function of the HMI in a SCADA system.

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