List the sequence of all outputs that are observed

Assignment Help Other Engineering
Reference no: EM131101127

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

1) As we saw in class, ripple counters sometimes produces temporary out-of-order outputs because of the propagation delay of the flip-flops. Compile and run the ripple_counter_tb.v file from the Homework 8 zipfile.

a. List the sequence of all outputs that are observed when incrementing the counter from 0 to 15, and wrapping back around to 0.  Mark the out-of-order outputs with a star.

b. Explain, based on the bits of the current count and the next count, how many temporary out-of-sequence outputs we will observe during the transition.

c. Assume that the propagation delay of a T flip-flop is 250 ps. We will run the counter with a periodic clock with period x (i.e. positive clock edges are separated by a duration of x). If we want the output to settle into the correct state by a maximum duration of (0.001)*x after a positive clock edge, what is the minimum period at which we can run the clock? Show your work.

2) As we will see, synchronous counters can run into their own problems when the clock is too fast. Compile and run the sync_counter_tb.v file from the Homework 8 zipfile.

a. Reduce the clock pulse width by changing the delay of the always statement near the bottom of the file. What happens to the phase relationship of Q and C as the clock frequency gets higher and higher?

b. When the frequency gets high enough, the circuit stops working properly. What is the failure mode, and what is the exact minimum clock pulse width that the circuit can take before it stops working?

c. Explain why the circuit fails the way does.

3) Below is the state diagram for a Moore state machine that controls a keypad entry for a door lock:

1138_Figure.png

The keypad has 8 alphabetical buttons labeled a-g, and a "set" button (mounted next to the latch, so it is inaccessible when the door is locked). When a button is pressed, a single clock pulse is generated, along with the corresponding input to the state machine (see Verilog below). No clock pulses are generated unless a button is pressed.

The entire circuit can be reset by an asynchronous reset signal from a watchdog timer: when no buttons have been pressed for 15 seconds, the timer causes the circuit to reset to state S0 (but does not reset the combination, of course).

Normal operation of the lock is as follows: to set the combination from state S0, the user presses the "set" button, followed by the three alphabetical button combination. If the user presses "set" again before three alphabetical buttons have been pressed, the combination does not change.

To open the door lock from state S0, the user simply keys in three alphabetical buttons. If the three buttons correspond to the combination, then the circuit ends up in state S3 and the latch is released; otherwise, the circuit ends up in state S6. The only way to get out of state S3 or state S6 is to wait for the watchdog timer to reset the circuit.

a. What combinatorial module might be useful for converting the 8 alphabetical buttons to a 3-bit input to the circuit?

b. How would comparators be useful for determining certain state transitions in the circuit? Which state transitions would they be used to determine?

c. Explain why five 3-bit storage registers are needed in this circuit.

d. Start with the file combolock.v from the zipfile, and implement the state machine above using behavioral Verilog. You shouldn't need to instantiate any other modules. The module is defined as combolock(clk, rst, set, btn, latch, S, C1, C2, C3)

where clk is the clock input, rst is the watchdog timer (briefly set to 1 after periods of inactivity), set is set to 1 if the "set" button was pressed, btn is the 3-bit value of the alphabetical button if one was pressed (in order, from a=0 to g=7; should be ignored when set=1), latch is the output indicating whether the latch should released (locked=0, unlocked=1), S is the current state of the circuit, and C1, C2, and C3 are the 3-bit values of the current combination.

Note that the default combination is g-a-g. The test bench combolock_success_tb.v from the zipfile should demonstrate that your circuit correctly opens and ends up in state S3, given the default combination.

e. Create a test bench combolock_fail_tb.v, which demonstrates that your circuit ends up in state S6 after an incorrect combination.

f. Create a test bench combolock_set_open_tb.v, which demonstrates setting the combination of the lock to bGeGe and subsequently opening the lock by entering that combination.

g. Create a test bench combolock_combo_idle_tb.v, which demonstrates that the circuit correctly resets to state S0 after two correct inputs and a watchdog reset.

h. Create a test bench combolock_set_cancel_tb.v, which demonstrates that the circuit correctly resets to state S0 after hitting "set", pressing two alphabetical buttons, and hitting "set" again - and that the combination does not change during that interaction.

Attachment:- homework8.zip

Reference no: EM131101127

Questions Cloud

Calculate the value of interference for this interval : Calculate the value of interference for this interval.
What is the assumed reinvestment rate of each method : In what sense is a reinvestment rate assumption embodied in the NPV, IRR, and MIRR methods? What is the assumed reinvestment rate of each method?
Explain why, if two mutually exclusive projects : Explain why, if two mutually exclusive projects are being compared, the short-term project might have the higher ranking under the NPV criterion if the cost of capital is high, but the long-term project might be deemed better if the cost of capital i..
Explain why the npv of a relatively long-term project : Explain why the NPV of a relatively long-term project, defined as one for which a high percentage of its cash flows are expected in the distant future, is more sensitive to changes in the cost of capital than is the NPV of a short-term project.
List the sequence of all outputs that are observed : E15: Fundamentals of Digital Systems - Fall 2010 - HOMEWORK 8. List the sequence of all outputs that are observed when incrementing the counter from 0 to 15, and wrapping back around to 0.  Mark the out-of-order outputs with a star
How is a project classification scheme used in the capital : How is a project classification scheme (for example, replacement, expansion into new markets, and so forth) used in the capital budgeting process?
Paper looking for structural concerns : Write a 750-1000 word essay about a pair of items in which the similarities and differences of those items are compared and contrasted in the style described within Unit III. For this assignment, you will edit and revise your Unit III Comparative ..
Required dollar rate of return on projects : Your company's required dollar rate of return on projects of similar risk is 10%. Inflation in the US and Japan is expected to be 3% and 2%, and the current spot rate is ¥ 125/$.
Discuss how what you learned throughout the course : Discuss how what you learned throughout this course can be applied to the five trends Reichel identified at the beginning of 2014.

Reviews

Write a Review

Other Engineering Questions & Answers

  Draw the voltage phasor diagram for the circuit

1. How much energy is stored by a 100 mH inductor with a current of 1 A? 2. A 15 kHz sinusoidal voltage is applied to a series RL circuit. Determine the frequency of I, VR, and VL.

  Define the components of chemical processing plant in msr

What are the main problems of SMART SMR? Define the components of "Chemical Processing Plant" in MSR? How can SCWR achieve thermal efficiency (>40%) comparing to a PWR's efficiency

  Food to cool to room temperature

If the refrigerator has a coefficient of performance of 1.2 and the cost of electricity is 10 cents per kWh, determine how much this person will save a year by waiting for the food to cool to room temperature before putting it into the refrigerato..

  What are two key elements of a sis

CI-3110 - Give key reasons for the BP Texas City refinery explosion. What are recommendations to prevent further catastrophic event and what does SIS include

  Find the input resistance rin and the midband gain am

Consider the common-emitter amplifier of Fig. under the following conditions: Rsig = 5 kΩ, B1 = 33 kΩ, RB2 = 22 kΩ, RE = 3.9 kΩ , RC = 4.7 kΩ, RL = 5.6 kΩ , VCC = 5 V. The dc emitter current can be shown to be IE _0.3 mA, at hich β = 120. Find t..

  Enter the logic gate symbols representing the gates

Enter the logic gate symbols representing the gates - Connect and label input and output pins.Label the inputs as A, B, C.

  Draw the diagram of the current source and three loads

There upon, we can switch each load on or off without affecting the power delivered to the other loads. How would we connect the loads and switches if the source is an ideal independent current source?

  Formulate the above problem mathematically and formulate

problem 1 the board of directors of general wheels co. is considering seven large capital investments. each investment

  Write a paper about digital tools and effective strategies

Write a paper about Digital Tools and Effective Strategies for Engaging the Adult Learner by David Jones.

  Generally increases in proportion to the degree

QUESTION 1. The type of cost that generally increases in proportion to the degree they are in use is _______ costs.

  Differences between the coverage in forms of media

Write a 700-word analysis of the similarities and differences between the coverage in forms of media. Include speculations about the reasons for the differences.

  Labview based building security and monitoring system

LabVIEW based building security and monitoring system, Modern security systems are commonly installed in industrial buildings, offices and most homes. They have different levels of complexity and are implemented using diverse electronic and computing..

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