Design a finite state machine

Assignment Help Mechanical Engineering
Reference no: EM13857691

Problem: The purpose of this problem is to design two circuits: a serial odd parity generator and a serial odd parity checker.

1. Serial Parity Generator

The generator has two inputs:

• D - The bit that is being transmitted this clock cycle.

• rst - reset the generator. Asserting this input makes the parity generator assume that no 1's have ever been transmitted. This input must be effective even from invalid states.

And one output:

• P- The odd parity bit for all data received since the circuit was reset. This output should be 0 the clock cycle after a reset since no zeroes or ones have been received by the circuit at that point.

Once reset, the generator tracks the number of l's being transmitted. This parity generator can be used to generate odd parity for a data sequence of any length. To generate parity for a 3 bit data value takes 5 clock cycles (reset for one clock cycle, 3 data transmitted, 1 cycle with a valid parity value).

a. Design a finite state machine (FSM) for this device. Use the fewest number of states possible.

b. Write a truth table for the next state and output logic. Use don't cares for output or next state values of any undefined states. Specify state bit mappings using a minimum bit width binary encoding using the lowest possible numbers for the encodings (i.e. any unused states would have the highest binary values. The initial state must have an encoding equivalent to the decimal value zero, Use K-maps to derive optimized logic equations for the next state bits and logic outputs from the truth table.

c. Draw the circuit for the parity generator based on the equations from part c using flip flops that do not have built-in reset capabilities.

2. Parity Checker

The receiver has two inputs:

• S - Start the checker. This only needs to be high for one clock cycle to start the parity checker. It must be set high the same clock cycle that the first data bit is received.

• R - The bit that was received this clock cycle.
And two outputs:

• G - Parity check is passed (good). After all bits have been received (i.e. the fifth clock cycle), this bit is set to I if no error was detected. It is set to '0' otherwise.

Before being started, the FSM sits in a wait state. When started, the checker will receive a sequence of 4 bits; one per clock cycle. The first 3 bits are the transmitted data. The fourth bit is an odd parity bit. The checker must determine if the parity is correct (i.e. is the total number of I 's in the data sequence odd) and set an error bit if it is not. Once the sequence has been checked, the checker waits for the start bit to be set again to check another sequence.

Reference no: EM13857691

Questions Cloud

The employer has violated stored communications act : Jane Erroll has applied for a position with Lakes Distribution Company. When Jane arrives for her interview she is asked several questions about events and photos that were posted on her Facebook page.  The employer has violated the Stored Communicat..
What coefficient of variation reveal about investments risk : What does the coefficient of variation reveal about an investment's risk that the standard deviation does not?
Restoration of the environment as part of the projects : The Connolly Communications Company, Inc. is looking for a construction company to lay 18 miles of telephone cable as part of its new factory in the country of Mishkalon. Spaulding is a leader in the sustainability area, and has received awards for i..
Muscular system case study : Muscular System Case Study-Instructions: This exercise contains information and medical terms that could be found in an actual medical record.
Design a finite state machine : The odd parity bit for all data received since the circuit was reset. This output should be 0 the clock cycle after a reset since no zeroes or ones have been received by the circuit at that point.
What is the minimum spacing l : Two waves A and B, both of wavelength λ = 51.7-cm, are initially out of phase by π. I want to bring them back in phase by placing some mirrors along the path of wave B as shown in the figure. What is the minimum spacing L required to achieve this?
Examinethe differences between profit and profitability : Examinethe differences between profit and profitability and how you plan to use your profits to increase your business profitability.
What is the difference between the role of a trial court : What is the difference between the role of a trial court and the role of an appellate court? What functions do they perform, and how do they perform them?
Supportive of flexible innovative work environment : "SPL Family is preparing to initiate a program whereby employees may participate in a telework program. We anticipate that implementation of the program will begin sometime next quarter. To qualify for this program, an employee must secure the approv..

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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