70 likes | 301 Views
CS2100 Computer Organisation http://www.comp.nus.edu.sg/~cs2100/. Assignment #1 Answers (AY2013/4) Semester 2. ASSIGNMENT #1 ANSWERS (1/6). Have you written your name and tutorial group number ? [ 100 marks ]. 1a. Convert (101101) Gray into binary. [1 mark]
E N D
CS2100 Computer Organisationhttp://www.comp.nus.edu.sg/~cs2100/ Assignment #1 Answers (AY2013/4) Semester 2
ASSIGNMENT #1 ANSWERS (1/6) • Have you written your nameandtutorial group number? [100 marks] • 1a.Convert (101101)Gray into binary. [1 mark] (101101)Gray = ( )2 1 0 1 1 0 1 110110 1 1 0 1 1 0 • 1b.Convert (011011)2 into std Gray code. [1 mark] (011011)2 = ( )Gray 010110 0 1 1 0 1 1 0 1 0 1 1 0 Write acongratulation message for your friend if he/she got them right, or some encouraging words if he/she got them wrong. Notes
ASSIGNMENT #1 ANSWERS (2/6) • 2.What is maxterm M177? [1 mark] M177 = A' + B + C' + D' + E + F + G + H' 17710 = 101100012 Write acongratulation message for your friend if he/she got itright, or some encouraging words if he/she got itwrong. Notes
ASSIGNMENT #1 ANSWERS (3/6) • 3.Given F(A,B,C) = A + B' G(A,B,C) = (A'+B) (A+C) What is Z(A,B,C) = F G? [1 mark] F B 1 1 1 1 1 1 A F(A,B,C) = Sm(0, 1, 4, 5, 6, 7) G(A,B,C) = Sm(1, 3, 6, 7) G = (A'+B) (A+C) = A'C + AB + BC = A'B'C + A'BC + ABC' + ABC + A'BC + ABC Z(A,B,C) = Sm(0, 3, 4, 5) Notes
ASSIGNMENT #1 ANSWERS (4/6) • 4.Express F(A,B,C,D) in simplified SOP form. [2 marks] 4-bit COMP A B C D X3 X2 X1 X0 X<Y X=Y X>Y F Y3 Y2 Y1 Y0 A B D C F = C'D Notes
ASSIGNMENT #1 ANSWERS (5/6) • 5.F(A,B,C,D) = PM(0,1,3,4,9,11)X(6,7,10,12,13) 5 • (a) PIs = [1 mark] C 3 • (d) Simplified POS expr. • (c) Simplified SOP expr. • (b) EPIs = 1 0 0 0 [2 marks] [2 marks] [1 mark] 0 1 X X B X X 1 1 A X 1 0 0 F = CD' + AD' + BD D F = (B+D')(A+C+D) Notes
ASSIGNMENT #1 ANSWERS (6/6) • 6.Count number of ‘1’ in ABCD, output XYZ. • (a) Z = Sm( ) • (a) P = A B Q = C D 1,2,4,7,8,11,13,14 [2 marks] [1 mark] Z = P Q XOR gate Notes