Professional Documents
Culture Documents
ECE332 - Fall 2021 - Hw01 - 7sept21
ECE332 - Fall 2021 - Hw01 - 7sept21
ECE332 - Fall 2021 - Hw01 - 7sept21
Homework Exercises:
1. Why must every computer have some amount of nonvolatile memory? Why must every computer
have some amount of volatile memory? Answer each question in your own words, with a few
sentences.
Secondary storage or long-term continuous storage are common non-volatile memory applications.
Often non-volatile memory costs more, does worse, and has a shorter lifetime than the random volatile
access memory.
Volatile storage is a computer that only saves data while the device is activated. On the other hand, non-
volatile memory will not lose its content if power is lost. Non-volatile memory has a constant power
supply and doesn't need to regularly refresh its memory information.
2. Use the repeated division technique and a lookup table to convert the given unsigned decimal
numbers to binary and octal. Use four digits in the octal answer and 12 bits in the binary answer.
a) 305
Binary: (000100110001)2
Octal: (0461)8
b) 679
Binary: (001010100111)2
Octal: (1247)8
c) 3210
Binary: (110010001010)2
Octal: (6212)8
3. Use tables to convert the given hexadecimal numbers to binary and octal. Use four digits in the
octal answer and 12 bits in the binary answer.
a) 0x06f
b) 0xb4a
c) 0x3d4
4. Use the positional number system to convert the given octal numbers to decimal.
a) 0217
(0217)8 = (143)10
b) 02365
(0217)8 = (1269)10
c) 06047
(0217)8 = (3111)10
5. Attempt to represent each of the following signed decimal values in two’s complement notation
with eight bits. If possible convert the value to hexadecimal.
a) 65
Binary = (1000001)2
Hexadecimal = (41)16
b) – 65
Binary = (-1000001)2
Hexadecimal = (-41)16
c) 135
Binary = (10000111)2
Hexadecimal = (87)16
6. Perform the following addition operation directly in hexadecimal, producing a four digit answer. For
each answer indicate whether or not there is a carry out and whether or not there is signed overflow.
a) 0x0173 + 0x113E
0173
+113E
(12B1)16
b) 0x62A3 + 0x3A24
62A3
+3A24
(9CC7)16
c) 0x2534 + 0x972A
2534
+972A
(BC5E)16
d) 0x972A + 0xA834
972A
+A834
(13F5E)16
________________________