Chapter 4 Digital Logic
Chapter 4 Digital Logic
Digital Logics
3 4 5 6 . 7 8 9
1 1 0 1 0 1
5 6 7 . 4 2
Copy binary
point
Soln. 000101111111.10001000
1 7 F . 8 8
Copy binary
point
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 13
Hexadecimal-to-binary conversion
To convert from hex. to binary, simply expand each
hexadecimal digit into 4 binary digits
Example: Convert F5C.46 to binary.
Soln.
F5C.46
Soln.
F5C.46
i Truth Table
A A B Q=A·B
0 1 0 1 0
t 0 0 0
B 0 1 0
0 1 0
t 1 0 0
Q
0 1 0 1 1 1
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 18
OR gate
Produces 0 only when A=0 and B=0;
other combinations will result 1.
A A ≥1
B B
Q=A+B Q = A +B
i A
0 1 0 1 0
t A B Q=A+B
0 0 0
B
0 1 0 0 1 1
t
1 0 1
Q
Q 0 1 0 1 0
1 1 1
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 19
NOT gate
Gives 1 only when input is zero and vise-versa.
A Q=A A &
Q=A
A X=A
0 1
1 0
Q=AB
A
Q=AB
B
A B A B A B
0 0 0 1
A 0 1 0 1
& Q=AB
B 1 0 0 1
1 1 1 0
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 21
NOR gate
This is the OR gate followed by the NOT gate
A
Q=A+B
B
A
Q=A+B
B
A B A + B A + B
0 0 0 0
A 0 1 1 1
≥1 Q=A+B
B 1 0 1 1
1 1 1 1
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 22
XOR gate
Gives 1 if the inputs are different and 0 if they are
identical or the output is equal to 1 if an odd number
of input values are 1 and 0 if an even number of
input values are 1. A
Q=A+B
B
A A B Q
Q=A+B
0 0 0
B
0 1 1
A 1
=1 Q=A+B
1 0
B 1 1 0
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 23
Combining gate
Combination of three NOR gates
C
A
Q
B
D A B C D Q
0 0 1 1 0
C 0 1 1 0 0
A P1 1 0 0 1 0
P1 Q 1 1 0 0 1
B P1
D
AND gate
C
A
Q
B
D A B C D Q
0 0 1 1 0
C 0 1 1 0 1
A & 1 0 0 1 1
& Q 1 1 0 1 1
B &
D
OR gate
December 31, 2020 CHAPTER-4 DIGITAL LOGICS D.K.RAO 25
Integrated circuit (7408)
1 14
2 13
3 12
4 11
5 10
6 9
7 8
Note:
74XX ICs are transistor-transistor logic (TTL) circuits; 0-5Volt
CMOS family have the numbers 40XX
High speed CMOS family are numbered as 74HCXX