Draw a state-transition diagram for this fsm

Assignment Help Civil Engineering
Reference no: EM131317178

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

2144_f8ac226e-fc3c-4b8d-a7b9-1f3457105e0c.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:

169_e89841fc-0ca0-47da-9209-2aace4ef46fe.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: EM131317178

Questions Cloud

Compose a short email memo advising your employees : As the HR manager, compose a short email memo advising your employees on cell phone etiquette. Choose a tone and level of formality that you feel is appropriate. Remember to provide a course of action for employees who want to provide feedback.
Compare and contrast one aspect of two civilizations : TWO primary sources which include one for each of the civilizations/nations you are comparing and contrasting. As a reminder, a primary source "is a document or physical object which was written or created during the time under study. These source..
Should the federal reserve be independent : Should the Federal Reserve be independent? Why or why not? If the Federal Reserve is not independent then who should manage it and why?
By how much must the arrival rate per hour increase : Install a second booth when the probability of having to wait at all exceeds 0.6. Under this criterion, by how much must the arrival rate per hour increase to justify a second booth.
Draw a state-transition diagram for this fsm : Draw a state-transition diagram for this FSM. Clearly label the inputs and out-puts.
Determining the corporate tax rate : If the corporate tax rate is 34%, what would it's cost of equity be if the firm was all equity financed? (Answer in decimal form and round answer to 4 decimal places, round intermediate calculations to 5 decimal places).
Risk-free securities today : The real risk-free rate of interest is 3 percent. Inflation is expected to be 4 percent this coming year, jump to 5 percent next year, and increase to 6 percent the year after (Year 3). According to the expectations theory, what should be the inte..
Discuss about the corporate alliances : Corporate alliances are increasing every year by about twenty-five percent and those same alliances are responsible for a third of a company's revenue. Amazingly enough, the failure rate for alliances are extremely high. The figures are staggerin..
Binomial option pricing model and risk-neutral probability : You expect MSFT to increase in value at a rate of 4% per quarter. Using the binomial option pricing model and risk-neutral probability, what do you estimate the price of a call should be if it expires in six-months (two time periods)? What should ..

Reviews

Write a Review

Civil Engineering Questions & Answers

  Make necessary calculations to select the pit from

A proposed embankment fill requires 8000 cubic meters of compacted soil. The void ratio of the compacted fill is specified as 0.7. Four borrow pits are available along with each of the respective void ratios along with the cost per cubic meter for mo..

  Determine what is the normal stress at the fixed support

The rod has a uniform cross-section of 53mm2. The external load consists of point loads: two P1 of 3kN, two P2 of 1kN, and one P3 of 7kN. What is the normal stress at the fixed support

  Determine flow depth-velocity and froude number after jump

Determine the flow depth, velocity and Froude number after the jump, the head loss associated with jump, the energy dissipation ratio, and the wasted power production potential due to the hydraulic jump.

  What does that mean in terms of remaining and removal

Suppose you are told that a process must achieve a 2.7 log removal of Giardia cysts. What does that mean in terms of % remaining and % removal

  Design a cantilever beam made of reinforced concrete

Design a cantilever beam made of reinforced concrete. The rectangular beam is 18 ft long and subjected to a uniformly distributed dead load of 1.5 kip/ft (not including the beam weight)

  What is the total theoretical oxygen demand of the waste

Calculate the NOD and ThOD of a waste containing 25 mg/L of ammonia-nitrogen (NH3 -N), 50 ing/L of phenol (C6 H5 OH). and 150 mg/L of naphthalene (C10 H8 ). What is the total theoretical oxygen demand of the waste?

  Determine force p required to move wedge under the post

Determine the force P required to move the wedge under the post. The coefficient of static friction between all surfaces is 0.25. The applied force F is 200 lbs and the angle alpha is 15 degrees.

  Determine the magnitude and direction of the force

Determine the magnitude and direction of the force P in so that the resultant of P and the 900N force is a vertical force of 2700N directed downward using.

  Determine the forces in members for pinned jointed frame

Determine the forces in the members for the pinned jointed frame shown in Figure Question 1, using the method of virtual work. All members have the same EA.

  Determine the deflection in degree for horizontal wind speed

Determine the deflection in degrees for horizontal wind speed of 10m/s and what is the magnitude of the force required at the bottom of the sign to prevent the sign from deflecting

  What speed will the sleeve attain

A Newtonian fluid is in the clearance between a shaft and a concentric sleeve. When a force of 600 N is applied to the sleeve parallel to the shaft, the sleeve attains a speed of 1 m/s. If a 1500 N force is applied

  Find magnitude and phase of all three line to line voltages

In a three phase balanced system, a delta connected source supplies power to a wye connected load. If the line impedance is 0.2 + j0.4 ohms, the load impedance 3 + j2 ohms, and the source phase voltage Vab = 208 at a 10 degree angle (V rms).

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