Professional Documents
Culture Documents
ENGINEERING AND
PETROLEUM
CpE-477
Fall 2020
Figure 5.14 A
seven-segment
LED display.
CpE-477: HDL-based Design Dr. A. Fairouz Figure 5.16 Data movement in an LFSR 39
with modulo-2 (exclusive-or) addition.
Modeling Digital Machines with Repetitive Algorithms
• Mode again the LFSR here by Auto_LFSR_ALGO, an algorithm-based behavioral
model that uses a for loop to sequence through the concurrent(nonblocking)
register assignments one at a time, beginning with the cell to the right of the most
significant bit (MSB).
Figure 5.37 An illustration of how metastability can Figure 5.36 A NAND latch configuration for eliminating the
happen in a physical system. effects of switch closure bounce.
CpE-477: HDL-based Design Dr. A. Fairouz 64
Metastability and Synchronizers
• There are two basic types of synchronizer circuits:
1. Asynchronous input pulse > clock period à (Fig. 5.38 a)
• The maximum latency is n+1, where n is the number of stages in the synchronizer chain.
2. Asynchronous input pulse < clock period à (Fig. 5.38 b)
• The maximum latency is n, where n is the number of stages in the synchronizer chain.
Figure 5.38 Synchronizer circuits for asynchronous input signals: (a) circuit for use when the width of the asynchronous input pulse is greater than the period of the
clock, (b) circuit for use when the width of the asynchronous input pulse is less than the period of the clock, (c) waveforms in the circuit of (b) when the asynchronous
pulse does not cause a metastable condition, and (d) waveforms of the circuit in (b) when the asynchronous input signal causes a metastable condition.
Figure 5.38 Synchronizer circuits for asynchronous input signals: (a) circuit for use when the width of the asynchronous input pulse is greater than the period of the
clock, (b) circuit for use when the width of the asynchronous input pulse is less than the period of the clock, (c) waveforms in the circuit of (b) when the asynchronous
pulse does not cause a metastable condition, and (d) waveforms of the circuit in (b) when the asynchronous input signal causes a metastable condition.