Draw a state-transition diagram for this fsm

Assignment Help Civil Engineering
Reference no: EM131315930

Suppose we wish to measure the traffic at a point on a railroad track, counting the axle crossings in each direction. We set up a light beam just above the rails and place two photocells A and B some inches apart, as shown (looking from above):

1432_d2.png

When the beam shines on a photocell, it produces a 0, and when the beam is interrupted, it produces a 1. Thus, when an axle crosses straight through from left to right, we read the following signals from A and B:

1916_d1.png

(and the reverse for the opposite direction). Unfortunately, not all axles cross straight through, and an axle may turn back after going part way through. An axle may move back and forth within the scope of the beam. We wish to construct a synchronous finite-state machine taking its two inputs from A and B and producing two outputs X and Y such that

• normally, both outputs are 0;

• when an axle has crossed completely from left to right, X becomes 1 for exactly one clock period;

• when an axle has crossed completely from right to left, Y becomes 1 for exactly one clock period. (The pulses generated by X and Y could drive two counters, for example.) Assume that the only things that interrupt the light beams are axles, and that the clock is fast enough that we do not miss any transitions.

A. Draw a state-transition diagram for this FSM. Clearly label the inputs and out-puts.

B. Construct the state-transition table for your FSM.

C. Show an implementation for this FSM using D flip-flops and a ROM.

D. Suppose we need to notify the maintenance department periodically about wear and tear on the track, and further that X and Y drive another FSM with one output that goes from 0 to 1 after every 100,000 axle crossings (total, both directions). How many states must that FSM have? How many D flip-flops would be needed to implement that FSM?

Reference no: EM131315930

Questions Cloud

When evaluating the addition of the lower-priced shoes : Walks Softly sells customized shoes. Currently, it sells 14,800 pairs of shoes annually at an average price of $59 a pair. It is considering adding a lower-priced line of shoes that will be priced at $39 a pair. Walks Softly estimates it can sell 6,0..
Generalize computation of ershov numbers to expression trees : An assignment to an array element, such as a[i] = x, appears to be an operator with three operands: a, i, and x. How would you modify the tree-labeling scheme to generate optimal code for this machine model.
Required return equal to the expected return : A stock is trading at $60 per share. The stock is expected to have a year-end dividend of $3 per share (D1 = $3), and it is expected to grow at some constant rate g throughout time. The stock's required rate of return is 11% (assume the market is in ..
Create a console based non-gui java program : Create a console based, non-GUI Java program using NetBeans Integrated Development Environment (IDE) that displays "Hello world!" Take a screenshot that shows the program's successful compilation and execution. Submit both a copy of your program a..
Draw a state-transition diagram for this fsm : when an axle has crossed completely from right to left, Y becomes 1 for exactly one clock period. (The pulses generated by X and Y could drive two counters, for example.
Modify the tree labeling scheme to generate optimal code : The original Ershov numbers were used for a machine that allowed the right operand of an expression to be in memory,- How would you modify the tree-labeling scheme to generate optimal code for this machine model?
Discuss the significance of religion and government : Analyze the ways in which government and religion interact with each other. What influence does one have over the other? Please provide two specific examples.
Market portfolio in your new optimal portfolio : We also know that the correlation coefficient between US and UK market portfolios is ρUS,UK = 0.5 and the correlation coefficient between US and Japan is ρUS,Japan = 0.266. Suppose that the risk-free rate is Rf = 5%. You currently hold a portfolio wi..
Write a one page summary on what was discussed : Please watch the video using the link below and write a one page summary on what was discussed.P.S Do not just repeat every word that was said in the summary. Contextualize them!

Reviews

Write a Review

Civil Engineering Questions & Answers

  Engineering ethics and ethical issue

what is the engineering ethics course where to write about any engineering ethical case and discuss the ethical issue?

  Engineering ethics and concept and cases

what is the engineering ethics case related to civil engineering with reference and discuss all the engineering ethics issues which covered the "Engineering etics concepte and cases?

  Transportation and management

In the construction management, there is a lot of procurement route that are necessary and suitable for the construction industry.

  Supporting Investment Promotion: ERNST & YOUNG

Ernst & young is currently providing support to various sectors. In this regards it was felt that if this report is able to document good practices currently being adopted or planned in ceramic sector.

  Personalized Cancer Therapy-A step forward

Cancer is the uncontrolled growth of abnormal cells in the body resulting in tumours that can be benign or malignant (cancerous cells). A proper treatment is necessary to fight with this serious disease.

  Discuss the different environmental companies

Discuss the different agencies, institutes, centers, different environmental companies that are active in UAE.

  Develop a simple urban constructed wetland design

Develop a simple urban constructed wetland design.

  Evaluate company performance in relation to GRI standards

Evaluate company performance in relation to GRI standards and comment on Stigler's theory.

  Water system design

Determine the corresponding error in the computed discharge

  Hydraulic behaviour in open channel

Describe how test flumes and associated equipment are used to assess and confirm hydraulic behaviour in open channel

  Write a paper on steel sustainability

Write a paper on steel sustainability.

  Writing case study about bridge collapse

Writing case study about bridge collapse

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