{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CompE270_Sp12_Quiz1SolutionsAnnotated

# CompE270_Sp12_Quiz1SolutionsAnnotated - Q0 CompE 270...

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Q0 CompE 270 Digital Systems s10 NAME : S D 0 4‘m3 Exam #1 - use additional sheets if needed -- SHOW WORK for partial credit 1) Binary notation has a range of valid values which depends on the number of bits and format. What is the range of valid values (in decimal notation) for: 5 pts. 8 bits, unsigned 4 bits, 2’s complement (most from: 0 (base 10) negative) from: “'23 ; 6 {base 10) z 3 __ .[. to: 254 {base 10) (to most to: 2". (base 10) 25 "1 positive) 2) Subtract the 8-bit UNSIGNED values (show results as 8 bits: binary, hex, and decimal notation) . Indicate if the result is valid 10 pts _ FF hex I 1 l \ l 1 I I binary = Z‘SG Dec — 10 hex — 000‘ 0.600 binary= ”:3 Dec show results in _, = l \ l O H l \ binary = 23‘? Dec hexadecimal: B I: Result valid? 225 1 b g 3,3 7, l 0 decimal: lsq ' :2 2 Z 2 Z ’L Z Z Borrow Out: &0 Overflow: MD I ' \ I ‘ t K \ . |28 x \Y 7 3) Add the 8—bit Mp values (show results as 8 bits: binary, hex, and decimal notation). Indicate if the result is valid 0000 30°C) 10 pts I 1 t .[a \ FFhex ﬂ\l\\\1\\ binary= ”“ Dec OODOOOOl + 10 hex DOOL 0000 binary: +Ib Dec show results in \ = 00 O 0 l\\\ binary = + [S Dec hexadecimal: 0 OF Result valid? 2.2g \ decimal: [S 00‘ 10 l g 0 l0 . = - a O //’_l_/ Carry Out. C Overflow. [0 X 00 IL 00 l K o I o l 0‘" o 6‘50 4) Multiply 310 times 510 in unsigned binary: 6 {OX .9 0d \ \ \ \ 5 P135 1 l 1 ‘1, \ \ Convert. (5 pts ea) "L S- 5) 4 bit 2’s complement 10 01 to decimal: 7 [\5 {00‘ ,3 Hand/1:475 6) Decimal -1. 25 to 2's complement binary: [O I l 3 [/ +l.’~—.—,Zb on an, ~z +L;=~Z+—;—«l+ ﬂaw; IOlD-H -: [0,11 7) Unsigned hex 100C to decimal: ilDE hcﬂjwb + e +17, 4oﬁbtl?’ B) Decimal 127 to unsigned hex:‘ 7F I175128b’J-v gen—vi : 7p; Exam1.doc 1 ...
View Full Document

{[ snackBarMessage ]}