LAB2 CPIT 210 Prepared by: Mohammed Ghazi
Computer Architecture CPIT 210 LAB 2 Manual
Prepared By:
Mohammed Ghazi Al-Obeidallah
LAB2 CPIT 210 Prepared by: Mohammed Ghazi
LAB 2 Outline:
1. Basic gates are discussed with students (AND, OR, NAND, NOR, INVERT) in the lab, each student will write their truth tables on his note book.
2. Students will learn how to work with Mulimedia Logic simulator, how to represent different circuit, and how to run the simulator.
3. Given any function, students will learn how to represent that function in P.O.S and S.O.P format.
4. Student should also know how to represent any circuit using some limited gates.
LAB 2 main Outcome:
1. At the end of lab a, students will be able to work with Mulimedia Logic simulator.
2. Students will know how to represent each function in S.O.P and P.O.S format.
LAB2 CPIT 210 Prepared by: Mohammed Ghazi
Q1]
Show a block diagram of a system using AND, OR, and NOT gates to implement the following function:F=( A ( B + C )β + B D E ) ( Aβ + C E )
Q2]
Simply the following expression in:(i) Sum of Product. (ii) Product of Sum.
a) Xβ Zβ + Yβ Zβ + Y Zβ + X Y b) A Cβ + Bβ Dβ + Aβ C D + A B C D
Answer:
a) Xβ Zβ + Yβ Zβ + Y Zβ + X Y
X Y Z F
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
S.O.Pο¨ F= Xβ Yβ Zβ + Xβ Y Zβ + X Yβ Zβ + X Y Zβ + X Y Z
P.O.S ο¨ F= (Xβ Yβ Z)β . (Xβ Y Z)β .(X Yβ Z)β = (X + Y + Zβ) ( X+ Yβ + Zβ) (Xβ + Y + Zβ) b) A Cβ + Bβ Dβ + Aβ C D + A B C D
A B C D F
0 0 0 0 1
0 0 0 1 0
0 0 1 0 1
0 0 1 1 1
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 0
1 1 0 0 1
1 1 0 1 1
1 1 1 0 0
LAB2 CPIT 210 Prepared by: Mohammed Ghazi
1 1 1 1 1
S.O.P Fο¨ Aβ Bβ Cβ Dβ + Aβ Bβ C Dβ+ Aβ Bβ C D + Aβ B C D + A Bβ Cβ Dβ + A Bβ Cβ D + A Bβ C Dβ + A B Cβ Dβ + A B Cβ D + ABCD
P.O.S Fο¨ (Aβ Bβ Cβ D)β . (Aβ B Cβ Dβ)β .(Aβ B Cβ D)β (Aβ B C Dβ)β (A Bβ C D)β (A B C Dβ)β
=( A+B+C+Dβ) (A+Bβ+C+D) (A+Bβ+C+Dβ) (A+Bβ+Cβ+D) (Aβ+B+Cβ+Dβ) (Aβ+Bβ+Cβ+D)
Q3]
I) Design the following functions using only NAND gates : a) X Yβ + Y Z + Xβ Yβ Zβ
b) Xβ Y + (X + Zβ) (Y + Z)
II) Redesign the functions above using only NOR gates.
Answer
I) using only NAND gates.
a) ( X Yβ + Y Z + Xβ Yβ Zβ )β β
= ( ( X Yβ )β . ( Y Z )β . (Xβ Yβ Zβ)β )β
b) Xβ Y + (X + Zβ) (Y + Z)
= ( Xβ Y + (X + Zβ) (Y + Z) )β β
= ( (Xβ Y)β . ( (X + Zβ) (Y + Z) )β )β
= ( (Xβ Y)β . ( (X + Zβ)β β (Y + Z)β β )β )β
= ( (Xβ Y)β . ( (Xβ . Z)β (Yβ . Z) β )β )β
II) Using only NOR gates.
a) X Yβ + Y Z + Xβ Yβ Zβ
= ( X Yβ )β β + ( Y Z )β β + ( Xβ Yβ Zβ )β β
= ( ( Xβ +Y )β + ( Yβ + Zβ )β + ( X+ Y+ Z )β )β β
b) Xβ Y + (X + Zβ) (Y + Z)
= (Xβ Y)β β + ( (X + Zβ) (Y + Z) )β β
= (X+ Yβ)β + ( (X + Zβ)β+ (Y + Z)β )β
= ( (X+ Yβ)β + ( (X + Zβ)β+ (Y + Z)β )β ) β β
Home work 2:
Consider the following circuit:
F= X'Y' +YZ'+XYZY'
1. Draw the circuit using the simulator.
2. Represent the circuit using P.O.S and draw it using the simulator.
3. Represent the circuit using S.O.P and draw it using the simulator.