EEEG 320 Chapter 1
EEEG 320 Chapter 1
EEEG 320
Digital Circuit and System Design
A B Q A|B ( Verilog)
OR Gate A#B (ABEL)
A or B (VHDL)
0 0 0
A +B (Textbook)
AvB
0 1 1
AᴜB
OR (Q,A,B) (Verilog)
1 0 1
Q = A OR B
1 1 1
A B Y
NAND Gate NOT-AND
0 0 1
0 1 1
W Z
1 0 1
Y = 𝐴. 𝐵 W= A & B
1 1 0 Z = ~W = ~(X & Y)
Y = not (A.B)
X Y Z
XOR
0 0 0
X Boolean Expression
Z
Y 0 1 1 Z = 𝑋 ഥ𝑌 +𝑋ത 𝑌
1 0 1
The output of the XOR operation is true only when the values of the inputs differ.
XNOR X Y Z
X 0 0 1
Z Boolean Expression
Y
0 1 0 Z = X.Y + 𝑋ത 𝑌ത
Z= xnor (Z,X,Y)
1 0 0
Z= X ʘ Y
1 1 1
NOR Gate
NAND Gate
= XY+X'YZ+X'Z
Rearrange terms = XY+X'ZY+X'Z
• Use absorption {AB+A=A} with A=X'Z and B=Y
XY+YZ+X'Z = XY+X'Z
EEEG 320 Digital Circuit and System Design 17
Example
as follows:
ത 𝑌ത
• Example: 𝑋.
=𝑋ത + 𝑌ത
=𝑋ധ + 𝑌ധ
=𝑋ധ + 𝑌ധ
=𝑋+𝑌
If S0 = 1 and S1 = 0,
If S = 0, in which
which input is
direction do the
transferred to the
input bits shift?
output?
EEEG 320 Digital Circuit and System Design 33
Simplification
Boolean
Truth
• Simplification from Boolean function Function
Table
- Finding an equivalent expression that is least
expensive to implement Unique Many different expressions exist
- For a simple function, it is possible to obtain
a simple expression for low cost implementation
- But, with complex functions, it is a very difficult
task
Truth
• Karnaugh Map (K-map) is a simple procedure for Table
simplifying Boolean expressions. Simplified
Karnaugh Boolean
Map Function
Boolean
function