Assignment 1
Assignment 1
Assignment 1
Problem 1:
1 1 1 1 (Sub)
−1 0 1 0 = 1101
1 1 1 1 (Add)
+1 0 1 0 = 10101
Problem 2:
Convert (7813.400)9 to hexadecimal (base 16). Carry out your answer to 3 places
past the decimal point.
To convert a number from base 9 to base 16, we first convert it to base 10 and then
from base 10 to base 16.
Given: (7813.400)₉
Let's convert it to base 10: =
(7813.400)₉ = 7 * 9^3 + 8 * 9^2 + 1 * 9^1 + 3 * 9^0 + 4 * 9^-1 + 0 * 9^-2 + 0 * 9^-3
= 7 * 729 + 8 * 81 + 1 * 9 + 3 * 1 + 4 * (1/9)
= 5103 + 648 + 9 + 3 + 0.4444
= 5763.444
Problem_3
1. Write a Boolean equation in sum-of-products and product-of-sums canonical form for
each of the following truth tables (C) and (D)
y' = A'.B + B.C' + A.D
y" = (A'.B + B.C' + A.D)'
y = (A + B') (B' + C) (A' + D')
Mohammad Nasser
Problem_4
1. Write Boolean equations for the circuit shown below.
Mohammad Nasser
Problem_5:
1. Simplify the following Boolean equations using Boolean theorems.
Mohammad Nasser
Problem_6
1. Find a minimal Boolean equation for the function shown below
If we choose to include the don't care entries, our simplified equation becomes:
2. Check for correctness using a truth table and K-map (You may not need to consider all
combinations, just consider few remarkable values)
We can verify the correctness of our simplified equation by creating a truth
table for the given function and comparing it with the truth table for our
simplified equation. We only need to consider the input combinations where
the output is 1 or X (don't care):
0001 X X
0010 X X
0011 0 0
0100 X X
0101 0 0
0110 X X
0111 X X
1000 1 1
1001 0 0
1010 X X
1011 1 1
1100 1 1
Mohammad Nasser
1101 1 1
1110 X X
1111 1 1
Problem 7:
A switching circuit has three inputs (A, B, C) and one output (Z). If A= 0, the output Z
is
the exclusive-OR of B and C. If A = 1, the output is the equivalence of B and C.
Equivalence of B and C is defined as: (B
⊕C)’
1. Find the truth table for Z.
A | B | C | Z
---------------------
0 | 0 | 0 | 0
0 | 0 | 1 | 1
0 | 1 | 0 | 1
0 | 1 | 1 | 0
1 | 0 | 0 | 1
1 | 0 | 1 | 0
1 | 1 | 0 | 0
1 | 1 | 1 | 1
BC
00 01 11 10
A +---+---+---+---+
0 | 0| 1| 0| 1|
+---+---+---+---+
1 | 1| 0| 0| 1|
+---+---+---+---+