












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Sequential circuits are those with memory, also called āfeedbackā. In this, they differ from combinational circuits , which have no memory. The stable output of a combinational circuit does not depend on the order in which its inputs are changed. The stable output of a sequential circuit usually does depend on the order in which the inputs are changed. Sequential circuits can be used as memory elements; binary values can be stored in them. The binary value stored in a circuit element is often called that elementās state. All sequential circuits depend on a phenomenon called gate delay. This reflects the fact that the output of any logic gate (implementing a Boolean function) does not change immediately when the input changes, but only some time later. The gate delay for modern circuits is typically a few nanoseconds.
We usually focus on clocked sequential circuits , also called synchronous sequential circuits. As the name āsynchronousā implies, these circuits respond to a system clock, which is used to synchronize the state changes of the various sequential circuits. One textbook claims that āsynchronous sequential circuits use clocks to order events.ā A better claim might be that the clock is used to coordinate events. Events that should happen at the same time do; events that should happen later do happen later. The system clock is a circuit that emits a sequence of regular pulses with a fixed and reliable pulse rate. If you have an electronic watch (who doesnāt?), what you have is a small electronic circuit emitting pulses and a counter circuit to count them. Clock frequencies are measured in kilohertz thousands of ticks per second megahertz millions of ticks per second gigahertz billions of ticks per second. One can design asynchronous sequential circuits , which are not controlled by a system clock. They present significant design challenges related to timing issues.
The top view is the āreal physical viewā. It is seldom used. The middle view reflects the fact that voltage levels do not change instantaneously. We use this view when considering system busses.
9 seconds
, then
9 seconds
Clocked latches accept input when the system clock is at logic high. Flipāflops accept input on either the rising edge of the system clock.
When either a flipāflop or a latch is used as a part of a circuit, we have the problem of feedback. In this, the output of the device is processed and then used as input. Example: The flipāflop is a part of a register that is to be incremented. We define the data path for the computer as following the output of the flipāflop through the processing elements and back to the input of the flipāflop. The data path time is the amount of time that it takes the data to travel the data path. If this time is too short, the processed output of the flipāflop can get back to its input during the time when the flipāflop remains sensitive to its input. A flipāflop is a latch that has been modified to minimize the time during which the device responds to its input. This minimizes the possibility of uncontrolled feedback as associated instabilities. In this course, we shall ignore latches and focus only on flipāflops.
We use the characteristic table to describe both latches and flipāflops. The characteristic table takes the present state and input and shows the next state. Here is the characteristic table for a flipāflop. S R Present State Next State 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 ERROR 1 1 1 ERROR At the moment, we are just showing the structure of a characteristic table. We shall explain later the meaning of āERRORā and associate the table with an SR flipāflop.
We often take a table such as S R Present State Next State 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 ERROR 1 1 1 ERROR And abbreviate it as
We now adopt a functional view. How does the next state depend on the present state and input. A flipāflop is a ābit holderā. Here is the diagram for the SR flipāflop. Here again is the state table for the SR flipāflop. S R Q(t + 1) 0 0 Q( t ) 0 1 0 1 0 1 1 1 ERROR Note that setting both S = 1 and R = 1 causes the flipāflop to enter a logically inconsistent state, followed by an indeterministic, almost random, state. For this reason, we label the output for S = 1 and R = 1 as an error.
Consider the characteristic table for the SR flipāflop. It is the same as that for the SR latch, except for the explicit reference to the clock. S R Q( t + 1) 0 0 Q( t ) 0 1 0 1 0 1 1 1 ERROR Were we to modify the SR flipāflop, what could be placed in the last row? It is easy to see that there are only four Boolean functions of a single Boolean variable Q. F(Q) = 0, F(Q) = Q, F(Q) = Q^ , and F(Q) = 1. The above table is missing Q^. This gives rise to the JK, the most general of the flipāflops. Its characteristic table is: J K Q(t + 1) 0 0 Q( t ) 0 1 0 1 0 1 1 1 Q ļØ^ t ļ©
The D flipāflop specializes either the SR or JK to store a single bit. It is very useful for interfacing the CPU to external devices, where the CPU sends a brief pulse to set the value in the device and it remains set until the next CPU signal. The characteristic table for the D flipāflop is so simple that it is expressed better as the equation Q(t + 1) = D. Here is the table. D Q(t + 1) 0 0 1 1 The excitation equation for a D flipāflop is quite simple: D = Q(t + 1).
The ātoggleā flipāflop allows one to change the value stored. It is often used in circuits in which the value of the bit changes between 0 and 1, as in a moduloā4 counter in which the lowāorder bit goes 0, 1, 0, 1, 0, 1, etc. The characteristic table for the T flipāflop is so simple that it is expressed better as the equation Q(t + 1) = Q(t) ļ T. Here is the table. T Q(t + 1) 0 Q(t) 1 QļØ^ tļ© The excitation equation for a T flipāflop is also quite simple: T = Q(t) ļ Q(t + 1). Here the symbol āTā denotes the input; ātā and āt + 1ā denote time.
Here again is the state table for the SR flipāflop.
1 1 Error We now derive the excitation table. If Q(t) = 0 and we want Q(t + 1) = 0, there are two choices: S = 0 and R = 0 maintains the same state, so Q(t + 1) = Q(t) = 0. S = 0 and R = 1 forces Q(t + 1) = 0. If S = 0, then the next state will be Q(t + 1) = 0 without regard to R. We say S = 0, R = d. Here is the Excitation Table for an SR FlipāFlop.
0 0 0 d 0 1 1 0 1 0 0 1 1 1 d 0
A JK flipāflop generalizes the SR to allow for both inputs to be 1. Here is the characteristic table for a JK flipāflop.
1 1 Q ļØ^ t ļ© Here is the Excitation Table for a JK FlipāFlop.
0 0 0 d 0 1 1 d 1 0 d 1 1 1 d 0