324 C H A P T E R 7 • Introduction to Sequential Logic
FIGURE 7.86
Problem 7.31
Flip-Flops
7.31Assume that all flip-flops in Figure 7.86 are initially set.
Draw a timing diagram showing the CLK, Q0, Q1, and Q2 waveforms when eight clock pulses are applied. Make a
table showing each combination of Q2, Q1, and Q0. What pattern do the outputs form over the period shown on the timing diagram?
7.32Refer to the JK flip-flop circuit in Figure 7.87. Is the circuit synchronous or asynchronous? Explain your answer.
7.33Assume all flip-flops in the circuit in Figure 7.87 are reset. Analyze the operation of the circuit when six-
teen clock pulses are applied by making a table showing the sequence of states of Q3Q2Q1Q0, beginning at 0000.
7.34Draw a timing diagram showing the sequence of states from the table derived in Problem 7.33.
7.35The waveforms shown in Figure 7.88 are applied to a negative edge-triggered JK flip-flop. The flip-flop’s Preset and Clear inputs are active LOW. Complete the timing diagram by drawing the output waveforms.
|
|
|
|
AND2 |
|
|
AND3 |
|
|
|
VCC |
|
|
|
|
|
|
|
|
|
JKFF |
|
JKFF |
JKFF |
|
JKFF |
|
|
|
J |
PRN |
J |
PRN |
J |
PRN |
|
PRN |
|
|
Q |
Q |
Q |
J |
Q |
|
|
K |
CLRN |
K |
CLRN |
K |
CLRN |
K |
CLRN |
|
|
|
|
|
|
|
CLK |
INPUT |
|
|
|
|
|
|
OUTPUT |
q3 |
|
|
|
|
|
|
|
OUTPUT |
|
|
|
|
|
|
|
|
q2 |
|
|
|
|
|
|
|
|
OUTPUT |
|
|
|
|
|
|
|
|
q1 |
|
|
|
|
|
|
|
|
OUTPUT |
|
|
|
|
|
|
|
|
q0 |
|
|
|
|
|
|
|
|
|
FIGURE 7.87
Problem 7.32
Flip-Flop Circuit
FIGURE 7.88 |
CLK |
Problem 7.35 |
|
Waveforms |
J |
|
K
PRE
CLR
Q
326 C H A P T E R 7 • Introduction to Sequential Logic
7.44Refer to the synchronous circuit in Figure 7.87. Create a MAX PLUS II Graphic Design File for a circuit with the same function, using T flip-flops rather than JK flipflops. Include an asynchronous reset input in the circuit. Create a simulation file to test the operation of the circuit.
7.45Write a VHDL file that implements the circuit you drew in Problem 7.44. Use TFF primitives in the design.
Section 7.7 Timing Parameters
7.46Use a TTL or high-speed CMOS data sheet, as appropriate, to look up the setup and hold times of the following devices:
a.74LS74A
b.74HC76
c.74LS76A
d.74LS107A
e.74ALS112A
f.74HC112
7.47Draw a timing diagram showing the setup and hold times for a 74LS76A flip-flop.
7.48Draw timing diagrams (to scale) showing setup and hold times, minimum CLK and CLR pulse widths, recovery time, and propagation delay times from CLK and CLR for both 74LS107A and 74HC107 flip-flops.
7.49Write names and values of the JK flip-flop timing parameters illustrated in Figure 7.92.
FIGURE 7.92
Problem 7.49
Timing Parameters
7.50Repeat Problem 7.49 for the timing diagram in Figure 7.93.
FIGURE 7.93
Problem 7.50
Timing Diagram
A N S W E R S T O S E C T I O N R E V I E W P R O B L E M S
Section 7.1
7.1 The latch resets (i.e., Q goes LOW) upon receiving the first reset pulse. At that point, the latch is already reset, so further pulses are ignored.
Section 7.2
7.2 The NOR latch has active-HIGH inputs. If you make both inputs HIGH, you are attempting to set and reset the latch at the same time, which is a contradictory action. A NAND latch has active-LOW inputs. Therefore, if both inputs are HIGH, neither the set nor reset function activates and there is no change on the latch output.
Section 7.3
7.3
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
LIBRARY altera;
USE altera.maxplus2.ALL;
ENTITY lch16prm IS
PORT(d_in |
: IN STD_LOGIC_VECTOR (15 downto 0); |
enable |
: IN STD_LOGIC; |
q_out |
: OUT STD_LOGIC_VECTOR (15 downto 0) ); |
END lchl6prm; |
|
ARCHITECTURE a OF lch16prm IS
BEGIN
—— Instantiate a latch from a MAX PLUS II primitive latch4:
FOR i IN 15 downto 0 GENERATE latch_primitive: latch
PORT MAP (d d in (i),
ena enable, q q out (i) ); END GENERATE;
END a;
Section 7.4
7.4 The edge detector circuit in the clock circuit accounts for the operational difference between a D flip-flop and a D latch. It works by using the difference in internal delay times between the gates that comprise the flip-flop’s clock input circuit.
Section 7.5
7.5 The flip-flops in asynchronous circuits are not all clocked at the same time; they are asynchronous with respect to the system clock. The flip-flops in a synchronous circuit have a common clock connection, which makes them synchronous to the system clock. The disadvantage to asynchronous circuits is that the internal delays of flip-flops can lead to unwanted intermediate states, since the flip-flops do not all change at the same time.
|
Answers to Review Section |
327 |
Section 7.6 |
Section 7.7 |
|
7.6 The circuit is shown in Figure 7.94. |
7.7 The parameter is called propagation delay. For the specified |
|
output transition, the symbol is tpHL. |
|
|
|
|
|
|
AND2 |
|
|
|
VCC |
|
|
|
|
|
|
|
TFF |
|
TFF |
TFF |
|
|
|
T |
PRN |
T |
PRN |
T |
PRN |
|
|
Q |
Q |
Q |
|
|
|
CLRN |
|
CLRN |
|
CLRN |
|
CLK |
INPUT |
|
|
|
|
|
|
|
|
|
|
|
OUTPUT |
|
|
|
|
|
|
|
Q2 |
|
|
|
|
|
|
OUTPUT |
|
|
|
|
|
|
Q1 |
|
|
|
|
|
|
OUTPUT |
|
|
|
|
|
|
Q0 |
|
|
|
|
|
|
|
FIGURE 7.94
Solution to Section Review Problem 7.6