Writing down a truth table for the state transition function

Assignment Help Other Engineering
Reference no: EM131101032

E15: Fundamentals of Digital Systems - Fall 2010 - HOMEWORK 6

1) In class we used some Boolean identities involving NAND to prove that sending an arbitrary value d to a D latch causes the latch to converge at the state Q=d, regardless of whether d is 0 or 1. In doing so we followed these rules:

  • When a value changes, draw a box around it, and in the next row, re-compute all variables whose value depends on the changed variables.
  • If no further changes in a row are possible, then the values have converged, and we place a check next to the row to show that the circuit has stabilized.
  • Whenever we change an input variable, we copy down the previous values of the non-input variables into the row before determining whether their values change, on the next line.

1738_Figure.png

Continue the table above by showing that if the D input changes to d' at t=30, that Q will converge to d'.

2) We will show using Boolean algebra that the positive edge triggered D flip-flop from the handout only changes Q to the value of D when the clock changes from 0 to 1. Starting with the initial inputs:

800_Figure1.png

a. At t=10, change D to the value d, and show that Q remains the same.

b. At t=20, change Clk to 1, and show that Q takes on the value d.

c. At t=30, change d to d' and show that Q remains unaffected, but S and R both change back to 1.

3) We can construct state machines like the ones in Worksheet 6 by writing down a truth table for the state transition function. The inputs to the state transition function are the state variables Si, and the outputs are the "next state" variables Ni. From there, we can use K-maps to produce simplified Boolean expressions for each output, and then implement them using gates.

Produce diagrams for these state machines:

a. Using two D flip-flops and any additional gates necessary, construct a state machine that progresses from the state 00 to 01, 10, and finally to 11. Once in the state 11, your state machine should stay there indefinitely.

b. Using three D flip-flops and any additional gates necessary, construct a state machine that progresses through all of the three-bit Gray codes, starting with 000 and continuing through 100 before starting over.

4) Here is a module dff implementing a D flip-flop using behavioral Verilog*:

2311_Figure2.png

a. Construct a Verilog module hw6_4a(clk, S) that implements the first state machine above by instantiating two D flip-flops. Your module should take a single input (the clock), and it should assign its 2-bit output with the values of the flip-flops.

b. Similarly, construct a Verilog module named hw6_4b(clk, S) that implements the second state machine above by instantiating three D flip-flops.

Submit both of your Verilog modules to the Blackboard site in a zipfile. The archive should contain two files named hw6_4a.v, and hw6_4b.v.

Reference no: EM131101032

Questions Cloud

What do we call an altered state of consciousness : What do we call an altered state of consciousness, during which an individual has experiences different from those encountered during normal awake states or while dreaming?
What is the project npv : The IRR of this 20-year project is 12.85%. If the firm's WACC is 11%, what is the project's NPV? Round your answer to the nearest cent. Do not round your intermediate calculations.
Company cost of common equity : a. What is the company's cost of common equity if all of its equity comes from retained earnings? b. If the company were to issue new stock, it would incur a 10% flotation cost. What would the cost of equity from new stock be?
Determine the resulting bandwidth and time constant : A non-inverting amplifier incorporates an op amp having an open-loop gain of 100 and bandwidth of 1 MHz. If the circuit is designed for a closed-loop gain of 16, determine the resulting bandwidth and time constant.
Writing down a truth table for the state transition function : We can construct state machines like the ones in Worksheet 6 by writing down a truth table for the state transition function. The inputs to the state transition function are the state variables Si
What do we call the quality of ambiguity or disorientation : What do we call the quality of ambiguity or disorientation that occurs in the middle stage of rituals, when participants no longer hold their pre-ritual status but have not yet begun the transition to the status they will hold when the ritual is ..
Firm average project : Depreciation, salvage values, net operating working capital requirements, and tax effects are all included in these cash flows. Both projects have 4-year lives, and they have risk characteristics similar to the firm's average project. Bellinger's ..
Personal financial planning project : This part of the personal financial planning project is where you put everything together. In this part you construct your personal financial plan. Specifically address the following required elements:
Investment in justus corporations stock : You are considering an investment in Justus Corporation's stock, which is expected to pay a dividend of $1.75 a share at the end of the year (D1 = $1.75) and has a beta of 0.9. The risk-free rate is 4.0%, and the market risk premium is 4.0%. Justu..

Reviews

Write a Review

Other Engineering Questions & Answers

  Test the operation of the ports of your development board

Test the operation of the ports of your Development board as follows. Write and compile a program to toggle all the bits of PORTA, and PORTB continuously by sending 55H and AAH to these ports.

  Pseudoplastic and a newtonian fluid please

A Bingham plastic, a dilatant, a pseudoplastic and a Newtonian fluid Please?

  Scale on the vertical axis

A small solid ball is released from rest while fully submerged in a liquid and then its kinetic energy is measured when it has moved 4.0 cm in the liquid. Figure gives the results after many liquids are used: The kinetic energy K is plotted versus..

  Just-in-time manufacturing

Describe the above system as a queueing system by defining - Explain if the above queueing system satisfies the following criteria by showing your calculations for each criterion.

  Suppose that nonlinear devices

Suppose that nonlinear devices are available for which the output current i o and input voltage v i are related by i o = a1vi + a3 v3i, where a= and a3 are constant. Explain how these devices may b used to provide:

  Prepare a design for a pump station shed

The shed structure is required to provide shelter for a small water treatment pump station. In order to carry out maintenance on the pumps, a suspended monorail with a 4-tonne lifting capacity is required along the centreline of the structure.

  Design a building matching the code

Assessment based on design a building matching the code that they mension

  Thin, thick and combined cylinder theory

Strength of Materials: Advanced DV01 35, LO2 Thin, Thick and Combined Cylinder Theory:  This outcome is assessed using all three of the assignments detailed below.   For each assignment you are required to write a report.

  Fabrication engineering at the micro and nanoscale

Air pressure decreases as altitude increases. At 18,000 ft above mean sea level, the atmospheric pressure is about half of what it is at sea level (i.e.,760 torr). The temperature also decreases by about 70 C. Does this change the speed distributi..

  Completment of the triangle

From Girard's theorem for a triangle, deduce Girard's theorem for the completment of the triangle.

  Find the equilibrium minority carrier concentrations

N-type silicon sample has a uniform density Nd = 1017cm-3 of arsenic, and a P-type sample has Na = 1015cm-3. A third sample has both impurities present at the same time. Find the equilibrium minority carrier concentrations at 300 K in each sample.

  What is the gain-bandwidth product

If a change in the amplifier circuit causes its transfer function to acquire another pole at 1 MHz, sketch the resulting gain magnitude and specify the unity-gain frequency. Note that this is an example of an amplifier with a unity-gain bandwidth t..

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