Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Civil Engineering Expert

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?

Civil Engineering, Engineering

  • Category:- Civil Engineering
  • Reference No.:- M92070539

Have any Question? 


Related Questions in Civil Engineering

Aimthis assignment aims to demonstrate the structural

Aim: This assignment aims to demonstrate the structural design requirements of a glazed façade in a multi-storey building. Among other requirements, the glazed façade is required to comply with Australian Standard AS 204 ...

The drainage system of a cantilever wall shown in below

The drainage system of a cantilever wall shown in below figure, became blocked after a heavy rainstorm and the groundwater level, which was originallybelow the base, rose to1.5 (m) below the surface. Determine the stabil ...

Assignment -ewb design report format - cover page - the as

Assignment - EWB Design Report Format - Cover page - The as EWB project Table of content Introduction about -EWB and CRDT (Cambodian Rural development team) Background about Cambodia - Economic, Weather, People - living ...

Masonry design assignmentquestion 1 - derivation of seismic

MASONRY DESIGN ASSIGNMENT Question 1 - Derivation of seismic actions on building a) Determine the storey seismic weights (Wi) for each suspended level of the building, hence the seismic weight (Wt) of the entire building ...

Task details the client is doing masters in civil

Task Details: The client is doing Masters in Civil Engineering. He needs a Technical Paper on Earthquake pertaining to Geology and Rock Mechanics. There should be a through discussion of Earthquake in relation to the men ...

Civilyou are provided with bill of quantities prepared

Civil You are provided with bill of quantities prepared separately, priced and submitted by 3 con- tractors (A,B,C found on LMS) in respect of a proposed project (see appendix for drawings). The site is located on Mt. Al ...

Masonry design assignmentquestion 1 - derivation of seismic

MASONRY DESIGN ASSIGNMENT Question 1 - Derivation of seismic actions on building a) Determine the storey seismic weights (Wi) for each suspended level of the building, hence the seismic weight (Wt) of the entire building ...

Assignmenta continuous three spans beam with

Assignment A continuous three spans beam with centre-to-centre distance of 6 m supports 150 mm thick one-way slabs as shown below. The beams have clear spans of 8 m, 9 m, and 8 (face-to-face of 400 mm square columns). Th ...

Assessment taskpractical investigationinstructions- it is

Assessment Task Practical Investigation Instructions: - It is very important that you read these instructions. - The hardcopy of the Assignment report, with the Assignment cover sheet, should be submitted to the Assignme ...

1 aimthe assignment aims to develop the ability to analyse

1. Aim The assignment aims to develop the ability to analyse, evaluate, research plan and manage a major building project through individual and group participation (ideally 4-6 people).Refer to vUWS for the DA plans and ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As