Week 7-15 LD
Week 7-15 LD
Introduction 654.5210
One One
All information (such as characters and numerals) is Hundreds Tens Units Total
tenth hundredth
expressed by combinations of 1s and 0s inside Weights 10 2
10 1
10 0
10 -1
10 -2
Radix Conversion
Radix is the number that forms unit of weight for each Conversion of Decimal Numbers to Binary Systems
digit in a numeration system such as binary, octal, Example 1
decimal, and hexadecimal notations. The radix in each 1. 62510 🡪 N2
of these notations is 2, 8, 10, and 16, respectively. sum-of-weights Repeated-division-by-2
Binary system: uses 0 and 1.
Octal system: uses 0 through 7.
Decimal system: uses 0 through 9.
Hexadecimal system: uses 0 through 9, A through F.
1
🡪 Binary
3. 10111101.110012 Rule: Convert each octal digit into an equivalent 3-bit
binary.
Example 6
4. 0.010112 1. 476.358
2. 275.628
🡪 Octal
Rule: Group the binary digits into 3 starting from LSB.
Convert each group into an equivalent octal digit.
3. 341.268
Example 3
1. 110102
🡪 Hexadecimal
Rule: First, convert each octal digit into an equivalent
2. 110101.112 3-bit binary and group the binary digits into 4
starting from LSB. Convert each group into an
equivalent hexadecimal digit.
3. 10111101.110012 Example 7
1. 476.358
🡪 Hexadecimal
Rule: Group the binary digits into 4 starting from LSB. 2. 275.628
Convert each group into an equivalent
hexadecimal digit.
Example 4
1. 110102 3. 341.268
2. 110101.112
Conversion of Hexadecimal Systems to:
🡪 Decimal
Example 8
3. 10111101.110012 1. 12A16
4. 1110001110.0111012 2. 0.4B16
2
Used in PCs, etc. *A byte is a unit of 8 bits. It is the unit for representing
ISO code ISO646 published as a recommendation characters.
by the International Organization for
Standardization (ISO), based on ASCII Complement
7-bit code for information exchange. ❖ the complement of a number is the value obtained
Unicode An industry standard allowing by subtracting the given number from a certain fixed
computers to consistently represent number, which is a power of radix or a power of the
characters used in most of the countries radix minus 1.
Every character is represented with 2
bytes. 1’s Complement
EUC Extended UNIX Code
2-byte and 1-byte characters can be ❖ is just the reverse of each bit (0 becomes 1 and
used together on UNIX vise-versa)
Chinese and Hangul characters are also
handled. Example 11
1. 10110002 = 01001112
2. 10110012
2. 12A16
3. 000101002
3. 0.4B16
2’s Complement
4. 3A6.C16 ❖ is 1’s complement plus one.
❖ short cut can be derived by copying the bits
from LSB to the final occurrence of 1. For the
rest of the digit get the 1’s complement.
Example 12
🡪 Octal 1. 10110002 = 01010002
Rule: Convert each hexadecimal digit into an
equivalent 4-bit binary. Group the binary digits
into 3 starting from LSB. Convert each group
into an equivalent octal digit. 2. 10110012
Example 10
1. B795.4516
3. 000101002
3. 0.4B16 Example 13
1. 37610
Example 14
BCD Code (Binary Coded Decimal Code)
1. 37610
Each digit of decimal number can be represented by
using 4 bits. The following shows such an example.
3
Arithmetic Operations
2. Octal
1. Binary
🡪Addition
🡪Addition
Example 19
02 + 02 = 02
376.238 534.758
02 + 12 = 12
+ 443.678 + 226.448
12 + 02 = 12
12 + 12 = 12
Example 15
🡪Subtraction
1011012 + 111112 =
Example 20
455.318 5348 4558
– 373.568 – 2268 – 3738
🡪Multiplication
🡪Subtraction Example 21
A. 1’s Complement 346.318 2768 7628
i. Convert the subtrahend to 1’s complement. 2.548 258 458
ii. Add the two numbers.
iii. Perform end around carry.
Example 16
1011012 – 0111112 =
3. Hexadecimal
🡪Addition
Example 22
59F16
+ E4616
B. 2’s Complement
i. Convert the subtrahend to 2’s complement.
ii. Add the two numbers.
🡪Subtraction
iii. Drop the MSB.
Example 23
E4616 13E516
Example 17 – 59F16 – E4616
1011012 – 0111112 =
🡪Multiplication
Example 24
2B516 27916
1716 3816
🡪Multiplication
02 02 = 02
02 12 = 02
12 02 = 02
12 12 = 12
Information and Logic
Example 18 Logic Functions
11012 1012 =
1. NOT Function – also known as inverter or logical
negation or simply negation.
Truth Table F=
A B
0 1
1 0
4
Truth Table F= 1 1 0
A B F
0 0
7. XNOR Function – defines inequality function
0 Truth Table F=
0 1 0 A B
1 0 0
1 1 1
F
3. OR Function – defines Boolean Addition or logical
0 0 1
sum.
0 1 0
1 0 0
Truth Table F= 1 1 1
A B
F
0 0 0
0 1 1
1 0 1 Integrated Circuits (IC)
1 1 1
74 Series Logic ICs
7404 – hex NOT gate
4. NAND Function – defines inverted Boolean
7408 – quad AND gate
Multiplication
7432 – quad OR gate
9.
6. XOR Function – defines inequality function or 10. A A=A
exclusive logical sum.
11.
Truth Table F= 12. 0 A=0
A B
13. 1 A=A
14.
F 15.
0 0 0 16. (A + B)(A + C) = A + BC
0 1 1
1 0 1 17.
5
For POS Equation:
18.
Boolean Laws
Commutative Law Minterms – the terms of SOP equation.
(a) A + B = B + A Maxterms – the terms in POS equation.
(b) A B = B A
Example
Associate Law
(a) (A + B) + C = A + (B + C) 1.
(b) (A B) C = A (B C) = m0 + m2 + m5 + m7
Distributive Law
(a) A (B + C) = A B + A C Where:
(b) A + (B C) = (A + B) (A + C) Σ – stands for the logical sum or Boolean OR of the
De Morgan's Theorem minterms.
(a)
2.
(b) = m1 + m3 + m4 + m6
Truth Table
- a table showing the input variable combinations and Where:
the expected output for each combination. Π – stands for the logical product or Boolean AND
of the maxterms.
SOP and POS Derivation from the Truth Table
SOP (sum of products) Equation 3.
❖ All combinations with output level 1.
❖ Write the terms in product form.
❖ If the variable is 1 write it in true form.
❖ If the variable is 0 write in complement. Where:
POS (product of sums) Equation j – denotes the decimal equivalent of the binary
❖ All combinations with output level 0. combination.
❖ Write the terms in sum form.
❖ If the variable is 0 write it in true form. Boolean Simplification Exercises
❖ If the variable is 1 write in complement. Simplify the following:
6
Solution: Property
The three variable map is cylindrical in nature.
Example A
1. Given:
Req’d: Simplify using k-map
Sol’n:
F(A,B,C) = Σ(0,1,2,5,7)
AB\C 0 1
00 1 1
01 1
11 1
10 1
Ans.
2. F(A,B,C) = Σ(0,1,4,5,6)
AB\C 0 1
00
01
11
10
7
00
01
11
10
Steps:
1. Plot the maxterms in the k-Map. Use the symbol “0”
for plotting.
2. Derived the complemented SOP output using the
rules of k-Map simplification.
3. Using the De Morgan’s Theorem, derive the POS
equation.
Examples:
1. F(A,B,C,D) = Π(0,1,2,4,6,8,10,12)
AB\CD 00 01 11 10
00
01
11
10