- 2075 Asoj · 2+4 marks
Hazards in asynchronous design; 2-bit comparator
Short answer
Hazards cause unwanted glitches that can lead to wrong states in asynchronous circuits, so they must be removed. A 2-bit magnitude comparator gives E = (A1⊙B1)(A0⊙B0), G = A1B1' + (A1⊙B1)A0B0', L = A1'B1 + (A1⊙B1)A0'B0.
What is the role of hazards in asynchronous circuit design? Explain two bit magnitude comparator with necessary diagrams.
Role of hazards in asynchronous circuit design
A hazard is an unwanted momentary pulse (glitch) at a circuit output caused by unequal propagation delays along different paths when an input changes. Types: static-1 (output should stay 1 but dips to 0), static-0, and dynamic hazards; essential hazards come from feedback delays.
In asynchronous circuits there is no clock to wait until signals settle, and outputs are fed back as state variables. A glitch can therefore be taken as a real change and drive the circuit into a wrong stable state, causing malfunction. So hazards must be removed, e.g. by adding redundant (consensus) terms in the K-map so that every pair of adjacent 1s is covered by a common group, and by careful delay control.
Two-bit magnitude comparator
It compares and and gives three outputs: (), () and ().
Let and (bit-equal signals). Compare the MSBs first; only if they are equal, compare the LSBs:
From K-maps the same functions in plain SOP are:
Partial truth table:
| G | E | L | ||
|---|---|---|---|---|
| 10 | 01 | 1 | 0 | 0 |
| 01 | 01 | 0 | 1 | 0 |
| 01 | 11 | 0 | 0 | 1 |
| 11 | 10 | 1 | 0 | 0 |
A1,B1 --[XNOR]-- x1 A0,B0 --[XNOR]-- x0
x1, x0 ------------------[AND]------------ E
A1,B1' ---[AND]---+
x1,A0,B0' [AND]---+------[OR]------------- G
A1',B1 ---[AND]---+
x1,A0',B0 [AND]---+------[OR]------------- L
Example: , : , , so . All 16 input combinations were verified.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- 2-bit magnitude comparator · Digital Logic, chapter 4 · asked 6×
- 3-bit magnitude comparator · Digital Logic, chapter 4 · asked 6×
- 2-bit equality comparator · Digital Logic, chapter 4 · asked 2×
- 4-bit equality comparator · Digital Logic, chapter 4 · asked 2×
- 3-bit asynchronous up/down counter · Digital Logic, chapter 8 · asked 2×
- 4-bit asynchronous down counter · Digital Logic, chapter 8
- Two-layer sand, stress diagrams (3 m, 4 m) · Soil Mechanics, chapter 6
- Create classes from design class diagrams · Object Oriented Analysis and Design, chapter 4 · asked 2×
- 8085 ALP: compare two tables of 16-bit data · Microprocessor, chapter 2
- C program: sum of two 8-bit BCD numbers · Embedded System, chapter 9