Ca2324 hw2 Template
Ca2324 hw2 Template
Solution:
1
Computer Architecture Homework 2
Figure 1
Solution:
2
Computer Architecture Homework 2
Figure 2
3
Computer Architecture Homework 2
Solution:
Question 4 (5 points)
The addressability of memory system of a computer is two bytes. You need 18 bits to access a
location in memory. What is the total size of the memory in bytes?
Solution:
The adressability of the memory is 2 bytes, which also mean that each memory location can
store 2 bytes of data. And to calculate the total size of the memory the following equation can
be used: Total Size of Memory = Number of Addresses × Size of each Addressable Unit
Total Size of Memory = 218 × 2
Total Size of Memory = 219
so the total size of the memory in bytes is 219 bytes
4
Computer Architecture Homework 2
Solution:
The concept of even parity involves the addition of a parity bit to a set of data bits to ensure
that the total number of ”1” bits, including the parity bit, is always even. In the case of even
parity, if the original data contains an odd number of ”1” bits, an additional ”1” is added as
the parity bit to maintain an even count. Conversely, if the data already has an even number
of ”1” bits, no extra bit is added. The XOR (exclusive OR) gate is a logical gate that aligns
with this specification, making it a suitable for implementing the even parity.
5
Computer Architecture Homework 2
Figure 3
Solution:
6
Computer Architecture Homework 2
Figure 4
a) Fill all of the missing values in the following truth table and provide the steps you followed to
obtain your answers. Please note that symbol X in the table can represent both 0 or 1 (the
so-called “don’t care”).
E A1 A0 F3 F2 F1 F0
1 X X
0 0 0
0 0 1
0 1 0
0 1 1
b) How many 2-to-4 decoders are needed to design a 4-to-16 decoder? Explain your answer.
Solution:
7
Computer Architecture Homework 2
Figure 5
Solution:
Figure 6
a) To increase the capacity of the memory to 2048, two circuits of 1024 locations are used. How
many bits are needed to address each location after this extension?
8
Computer Architecture Homework 2
b) How should we connect the address/data/WE buses to these memory units? (Draw your
solution)
Solution: