Professional Documents
Culture Documents
Homework 0412
Homework 0412
Homework 12/04/2024
Due: 26/04/2024
1. (10%) If each cell’s address can be represented by two hexadecimal digits, how
many cells can be in a computer's main memory? What if four hexadecimal digits
are used?
2. (10%) What input bit patterns will cause the following circuit to produce an
output of 1?
Upper input= U
Lower input=P
1 0 0 1 0 1
1 1 0 0 0 1
0 0 1 1 1 0
0 1 1 0 0 1
Since 8 bits = 1 byte, we have a total of 4 bytes that will be used per pixel
The total of pixels equal 256*256=65536
So, the entire byte-size memory cells that are required to hold the entire image is
65536*4➔ 262144 bytes
5. (10%) Solve the following problems by translating the values into two’s
complement notation (using patterns of 5 bits), converting any subtraction
problem to an equivalent addition problem, and performing that addition.
Check your work by converting your answer to base ten notation. (watch out
for overflow)
(a) 5+1 =6
00101+00001=00110
Check= 0+0+22 + 21 +0=6
(b) 5-1 =4
(c) 12-5
(d) 12+5=17
01100+00101=10001
24 + 0 + 0 + 0 + 20 = 17
(e) 5-11
00101+ 10101=11010
6. (10%) What is the best approximation to the square root of 2 that can be
expressed in the 8-bit floating-point shown below? What value is obtained if
this approximation is squared by a machine using this floating-point format?
3
√2=1.4142 ➔√2 = 1 8 APROX 1.011
1.011 × 2101
0.375 × 2 = 0.75
0.75 × 2 = 1.5
1.5 × 2 = 1
01011011
7. (10%) What kind of logic gate do we need to design an overflow detection
circuit?
9. (10%) MP3 takes advantage of the properties of the human ear, removing
details that the human ear cannot perceive, which is called temporal masking
and frequency masking. Please explain temporal and frequency maskings.
Frequency Masking:
Temporal masking:
Temporal masking occurs when a sudden stimulus sound makes inaudible other sounds
which are present immediately preceding or following the stimulus.