Docsity

Digital Logic Design Homework - EENG-2710, University of North Texas - Prof. Parthasarathy, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
DepartmentofElectricalEngineering,
CollegeofEngineering,UniversityofNorthTexas,Denton
DigitalLogicDesign(EENG‐2710)Homework–1(Spring2008)
Facilitator:Dr.ParthaGuturu
Learner:
GeneralInstruction:Pleaseincludethisasacoverpageofyoursubmissionforatotalof10Marks.
SubmissionDeadline:Feb.6,2008.
1. Convertthefollowingtwodecimalnumberstobinary,octal,andhexadecimalnumbers.
i) 174.25ii)250.8(2x3x1/2=3Marks)
2. Convertthefollowingtwounsignedbinarynumberstooctal,hexadecimal,anddecimal
numbers.
i) 10101.11ii)10110110.001(2x3x1/2=3Marks)
3. Showhowa16‐bitcomputerusingatwo’scomplementnumbersystemwouldperformthe
followingcomputations.(4x1=4Marks)
i) (16850)10+(2925)10=(?)10
ii) (16850)10‐(2925)10=(?)10
iii) (2925)10‐(16850)10=(?)10
iv) ‐(16850)10‐(2925)10=(?)10
Hint:Treatalloperationsasadditionsafterrepresentingthenumberswithnegativesign
beforethemintwo’scomplementform.Iftheresultofadditionhassign‐bit(15thbit)ON,
performtwo’scomplementonitgetthecorrespondingpositivenumbersothatyoucan
replacethe“?”markwithinthebracketsbytheequivalentdecimalnumberwitha
preceding“‐“sign.Youmayverifytheresultssoobtainedbycomparingwithresults
computedusingthefamiliardecimalarithmetic.

Partial preview of the text

Download Digital Logic Design Homework - EENG-2710, University of North Texas - Prof. Parthasarathy and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Department of Electrical Engineering,

College of Engineering, University of North Texas, Denton

Digital Logic Design (EENG‐2710) Homework – 1 (Spring 2008)

Facilitator: Dr. Partha Guturu

Learner:

General Instruction: Please include this as a cover page of your submission for a total of 10 Marks. Submission Deadline: Feb. 6, 2008.

  1. Convert the following two decimal numbers to binary, octal, and hexadecimal numbers. i) 174.25 ii) 250.8 (2x3x1/2 = 3 Marks)
  2. Convert the following two unsigned binary numbers to octal, hexadecimal, and decimal numbers. i) 10101.11 ii) 10110110.001 (2x3x1/2 = 3 Marks)
  3. Show how a 16 ‐bit computer using a two’s complement number system would perform the following computations. (4x1 = 4 Marks) i) (16850) 10 + (2925) 10 = (?) 10 ii) (16850) 10 ‐ (2925) 10 = (?) 10 iii) (2925) 10 ‐ (16850) 10 = (?) 10 iv) ‐(16850) 10 ‐ (2925) 10 = (?) 10 Hint: Treat all operations as additions after representing the numbers with negative sign before them in two’s complement form. If the result of addition has sign‐bit (15 th^ bit) ON, perform two’s complement on it get the corresponding positive number so that you can replace the “?” mark within the brackets by the equivalent decimal number with a preceding “‐“sign. You may verify the results so obtained by comparing with results computed using the familiar decimal arithmetic.