ICS 2205 Lecture 2 - Gray Code, Boolean Algebra and Logic Gates
ICS 2205 Lecture 2 - Gray Code, Boolean Algebra and Logic Gates
By J. Mathenge
. 1 0 1 1 1 0 1 1 0
1 1
The table below shows the Gray codes for the first 16
decimal digits:
Sign 32 16 8 4 2 1
Bit
+39 0 1 0 0 1 1 1
+25 0 0 1 1 0 0 1
Perform: 659+825.
1024 512 256 128 64 32 16 8 4 2 1
659 1 0 1 0 0 1 0 0 1 1
825 1 1 0 0 1 1 1 0 0 1
Perform: 659-825.
Sign Bit (-1024) 512 256 128 64 32 16 8 4 2 1
+659 0 1 0 1 0 0 1 0 0 1 1
+(-825) 1 0 0 1 1 0 0 0 1 1 1
1 1 1 0 1 0 1 1 0 1 0
Example: x = A + B + C