140 likes | 486 Views
Chapter 8. Sequential Logic Design Practices. 8.1 Sequential-Circuit Documentation Standards. State-machine descriptions Word descriptions State tables state diagrams Transition lists ABEL programs VHDL programs Timing diagrams and specifications A detailed timing diagram Timing margin
E N D
8.1 Sequential-Circuit Documentation Standards • State-machine descriptions • Word descriptions • State tables • state diagrams • Transition lists • ABEL programs • VHDL programs • Timing diagrams and specifications • A detailed timing diagram • Timing margin • Indicates how much “worse than worst case” the individual components of a circuit can be without causing the circuit to fail.
Setup time margin tsetup -tclk -tffpd(max) - tcomb(max) • Hold time margin tffpd(min) + tcomb(min)-thold • For proper circuit operation we must have tsetup -tclk -tffpd(max) - tcomb(max) > 0, and tffpd(min) + tcomb(min)-thold > 0 • Functional timing of a synchronous circuit (Fig. 8-2) • Propagation delays of CMOS devices (Table 8.1)
8.2 Latches and Flip-Flops • SSI latches and flip-flops (Fig. 8-3) • Simple application of a latch • Switch debouncer (Fig. 8-4, Fig. 8-5, Fig. 8-6) • Multibit registers and latches • Register: a collection of two or more flip-flops with a common clock input. • 74x175 (Fig. 8-8), 74x174 (Fig. 8-9) • 74x374 8-bit register and 74x273 (Fig. 8-10, Fig. 8-12) • 74x373 8-bit latch (Fig. 8-11) • 74x377 8-bit register with gated clock (Fig. 8-13) • Registers and latches in ABELs and PLDs • Registers and latches in VHDL
8.4 Counters • Counter • Any clocked sequential circuit whose state diagram contains a single cycle. (Fig. 8-26) • Modulus of a counter • is the number of states in the cycle. • Modulo-m counter (divide-by-m counter) • A counter with m states • n-bit binary counter • A counter has n flip-flops and has 2n states, which are visited in the sequence 0, 1, 2, …, 2n-1, 0, 1, … . • Ripple counter (Fig. 8-27) • The quickest time when the most significant bit change is ntTQ
Synchronous counter • A synchronous counter connects all of its flip-flops clock inputs to the same common CLK signal. (Fig. 8-28) • All flip-flop will change their outputs after only tTQ. • Synchronous serial counter (Fig. 8-28) • The minimal time period that two successive clock ticks can be applied is tTQ+3tAND2 • Synchronous parallel counter (Fig. 8-29) • The minimal time period that two successive clock ticks can be applied is tTQ+tAND4 • MSI counters and applications • 74x163 counter, Fig. 8-30 for logic symbol, Table 8-11 for state table, and Fig. 8-31 for logic diagram. • A free running 74x163 counter (Fig. 8-32), Fig. 8-33 for waveform.
Waveform for a free-running divide-by-10 counter (Fig. 8-34) • A modulo-11 counter (Fig. 8-35) • Another modulo-11 counter (Fig. 8-36) • A excess-3 decimal counter (Fig. 8-37), Fig. 8-38 for waveforms. • Cascading 74x163 counters (Fig. 8-39) • A modulo-193 counter (Fig. 8-40) • Counters in ABEL and PLDs • Counters in VHDL
8.5 Shift Registers • A shift register is an n-bit register with a provisions for shifting its stored data by one bit position at each clock tick. • Serial-in, serial-out shift register (Fig. 8-46). • Serial-in, parallel-out shift register (Fig. 8-47) • Parallel-in, serial-out shift register (Fig. 8-48) • Parallel-in, parallel-out shift register (Fig. 8-49) • MSI shift registers • 74x164, 74x166, 74x194 (Fig. 8-50) • Logic diagram for 74x194 (Fig. 8-51) • Function table for 74x194 (Table 8-18) • 8-bit universal shift register: 74x299 (Table 8-19, Fig. 8-52, 8-53)
8.5.3 The World’s Biggest Shift-Register Application • Digital telephony • Central office • Serial channel • Multiplex • ISDN (Integrated Services Digital Network)
8.5.4 Serial/Parallel Conversion • Digital transmission system (Fig. 8-54) • Three signals accomplish transfer • Clock • 2.048 MHz, 32x8000 8-bit bytes/per second • A frame contains 256 bits (equal to 125 s) • A time slot contains 8 bits • Serial data • Synchronization • SYNC: 1-bit wide to indicate the beginning of a frame • Timing diagram for parallel-to-serial conversion (Fig. 8-55) • Transmitter (Fig. 8-56) • Receiver (Fig. 8-56) • Timing diagram for serial-to-parallel conversion (Fig. 8-58)
8.5.5~8.5.6 Shift-Register Counter& Ring Counter • A shift-register counter can be formed by combining a shift register with combinational logic such that its state diagram is cyclic. • A ring counter is a shift-register counter that uses n-bit shift register to form a counter with n states. • 4-bit ring counter (Fig. 8-59, 8-60) • Problem with ring counter (Fig. 8-61) • Self-correcting counter • Making all abnormal states transfer to normal states • Self-correcting ring counter (Fig. 8-62, 8-63) • 8.5.9 Shift registers in ABEL and PLDS • 8.5.10 Shift registers in VHDL
8.7 Synchronous Design Methodology • In a synchronous system, all flip-flops are clocked by the same common clock signal, and preset and clear inputs are not used, except for system initialization. • A synchronous system structure (Fig. 8-79) • Timing for a synchronous system (Fig. 8-80)
8.8 Impediments to Synchronous Design • Clock skew • Definition • The difference between arrival times of the clock at different memory devices • Example of clock skew (Fig. 8-85) • Influence of clock skew • Reduce the setup and hold time margins. For proper operation tffpd(min) + tcomb(min) - thold - tskew(max) > 0 tsetup -tclk -tffpd(max) - tcomb(max) - tskew(max) > 0 • Reducing clock skew • proper buffering the clock (Fig. 8-86) • Better clock distribution (Fig. 8-87, 8-88)
Gating clock • Why not to gate the clock (Fig. 8-89) • An acceptable way (Fig. 8-90) • Asynchronous inputs • Why use the asynchronous inputs? • Problem with asynchronous inputs • Meta-stable • Need synchronizers • A simple one (Fig. 8-91)