Question

In: Electrical Engineering

What is meant by race-condition on ripple counter?

What is meant by race-condition on ripple counter?

Solutions

Expert Solution

Usually all ripple counters are asynchronous circuits

Asynchronous circuit design usually begins with the primitive flow table which is similar to the flow table but only possesses one stable state per row. This is then studied to see whether any of the resulting states are equivalent (in terms of their stable states, where their unstable states lead and the associated outputs). If any states are equivalent then they can be combined to produce the minimum-row primitive flow table (still with one stable state per row) which can be further reduced by merging equivalent rows to give the flow table we have used during circuit analysis.

The state assignment is then performed in which binary codes are given to the states in the flow table. Note that there are many state assignments possible (i.e. any binary code can be given to any state). This leads to the transition table and then on to the final Boolean equations for the output variables.

Hazards

Unfortunately the process is not quite this straightforward, and further thought is necessary to produce a reliable circuit. We saw in Section 4.3 that combinational circuits can contain hazards and therefore the effects of these in the combinational block of our asynchronous circuit must be taken into account. In addition asynchronous circuits possess their own potential hazards.

We have seen how relaxation of fundamental mode operation can lead to race conditions. In a similar way if a circuit possesses more than two internal variables and these change ‘simultaneously’ then the order in which they change may result in different eventual states being reached. (In this situation the flow table will have more than two rows, and the order in which these rows are visited within the same column, upon external inputs being changed, may differ and lead to an unexpected stable state.) Techniques for predicting and eliminating such problems exist and this is done during state assignment. It may involve the introduction of additional intermediate states which are visited transiently during the actual required transition.

Spikes in the outputs may occur due to the same cause (i.e. transiently visited states) and can be eliminated by consideration of the ‘don't care’ conditions when drawing up the output table.

Finally, even if neither critical races nor hazards in the combinational logic block exist an asynchronous circuit may still possess essential hazards. These are due to internal delays in the circuit which make it appear as if a single external input has changed three times (i.e. 0 → 1 → 0 → 1) rather than just once. These can be eliminated by adding in appropriate delays to the circuit to ensure signals propagate in the ‘correct’ order.

Summary

In principle asynchronous design is straightforward but the presence of hazards means that care must be taken for such designs to function correctly. The hazards are usually dealt with by: firstly eliminating critical races; then ensuring all combinational logic is free of hazards; and finally spotting and eliminating essential hazards by the addition of strategically placed delays.


Related Solutions

Why does a race condition occur? What is the solution for the race condition?
Why does a race condition occur? What is the solution for the race condition?
What is a ripple counter? How is it constructed using D flip-flops?
What is a ripple counter? How is it constructed using D flip-flops?
What is a race condition in software?
What is a race condition in software?
Q1. Explain what a race condition is. Provide an explanation of how a race condition occurs,...
Q1. Explain what a race condition is. Provide an explanation of how a race condition occurs, and what mechanisms operating systems employ to prevent them. Q2. True or False: Multi-level feedback queue scheduling can be used to favor shorter processes without knowing estimated CPU burst times in advance.
What is meant by condition monitoring of a pump
What is meant by condition monitoring of a pump
1. design a mod-16 ripple down counter using positive triggered 2. design a synchronous counter to...
1. design a mod-16 ripple down counter using positive triggered 2. design a synchronous counter to count in the following sequence : 15, 9,, 11, 5, 2, 13, 1
What is meant by the word ‘cause’ in the following—necessary condition, sufficient condition, or mere tendency?
What is meant by the word ‘cause’ in the following—necessary condition, sufficient condition, or mere tendency?(a) Throwing a brick through a window causes it to break. (b) Slavery caused the American Civil War.(c) Exposure to the cold causes frostbite.(d) Running causes knee injuries.(e) Closing your eyes causes you not to be able to see.
write sample code in VHDL Design and implementation of Pressetable ripple counter using behavioral style of...
write sample code in VHDL Design and implementation of Pressetable ripple counter using behavioral style of modeling by using pic74196
(c) What is meant by the Marshall-Lerner condition? (d) Assuming the Marshall-Lerner condition holds, contrast the...
(c) What is meant by the Marshall-Lerner condition? (d) Assuming the Marshall-Lerner condition holds, contrast the factors that influence goods market equilibrium in an open economy with those of a closed economy.
What is meant by the golden rule level of capital? Explain what condition on the MPK...
What is meant by the golden rule level of capital? Explain what condition on the MPK is required if we are to have the golden rule. Explain why this condition is necessary. Finally, true or false: over time, the Solow model predicts that the capital stock approaches the golden-rule level.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT