Data Representation and Digital Logic - Assignment 1
Verified
Added on 2023/06/14
|9
|811
|294
AI Summary
This assignment covers topics like data representation, digital logic, one's complement, two's complement, signed magnitude, and logic diagrams.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head: COMPUTER ORGANIZATION AND ARCHITECTURE Assignment 1: Data Representation and Digital Logic Subject Code (ITC544) Student Name Student ID Name of the University Author’s Note
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1 COMPUTER ORGANIZATION AND ARCHITECTURE Table of Contents Answer to Question 1:.....................................................................................................................2 Answer to Question 2:.....................................................................................................................5 Bibliography....................................................................................................................................8
2 COMPUTER ORGANIZATION AND ARCHITECTURE Answer to Question 1: a. Determination of the value of x, if (152)x = (6A)16 => x2+ 5x + 2*x = 6 * 16 +A => x2+ 5x + 2*x = 6 * 16 +10 => x2+ 5x + 2 = 106 => x2+ 5x -104 = 0 => x2+ 13x – 8x -104 => x(x+13) -8 (x+13) = 0 => (x-8) (x+13) = 0 Thus, x =8 or, -13 Discarding the negative value we get that the value of x = 8 b. Conversion i) 0xBED into 3-base representation => B * 16 * 16 + E * 16 + D => 2816 + 224 + 13 => (3053)10 33053
4 COMPUTER ORGANIZATION AND ARCHITECTURE iii) 1235 into octal representation 81235 81543 8192 823 Therefore, (1235)10= (2323)8 iv) 21.218 into decimal representation =>21.218=(2 * 81) + (1 * 80) + (2 * 8-1) + (1 * 8-2) => 16 + 0.25 + 0.015625 => 17.26562510 c. i) One's complement Lowest value (negative number) = 100 Highest value (positive number) = 011 ii) Two's complement Lowest value (negative number) = 101 Highest value (positive number) = 011 iii) Signed Magnitude Lowest value (negative number) =111
5 COMPUTER ORGANIZATION AND ARCHITECTURE Highest value (positive number) = 011 Answer to Question 2: a. The expression for the logic diagram is: (a.b)’ The following is the truth table of the first expression ABa.b(a.b)’ 0001 0101 1001 1110 The expression of the logic diagram can be given as: => a’ + b’
6 COMPUTER ORGANIZATION AND ARCHITECTURE The following is the truth table of the second expression aba’b’a’ + b’ 00111 01101 10011 11000 Therefore, First Expression = Second Expression b. The following expression is derived from the above diagram: A’. B’ + A.B = X It can be simplified as follows:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
8 COMPUTER ORGANIZATION AND ARCHITECTURE Bibliography Harris, S., & Harris, D. (2015).Digital Design and Computer Architecture: ARM Edition. Morgan Kaufmann. Null, L., & Lobur, J. (2014).The essentials of computer organization and architecture. Jones & Bartlett Publishers.