0% found this document useful (0 votes)
17 views2 pages

Cs Assignment 7

This document is the answer key for Assignment 7 of COSC 320, detailing solutions to memory addressing and interleaving problems. It includes calculations for bits required to address memory and determine bank numbers and offsets for given addresses. The assignment is due on October 30, 2022, with no grace period for late submissions, as the answer key will be posted immediately after the deadline.

Uploaded by

Angela Abou Zaki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Cs Assignment 7

This document is the answer key for Assignment 7 of COSC 320, detailing solutions to memory addressing and interleaving problems. It includes calculations for bits required to address memory and determine bank numbers and offsets for given addresses. The assignment is due on October 30, 2022, with no grace period for late submissions, as the answer key will be posted immediately after the deadline.

Uploaded by

Angela Abou Zaki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

COSC 320 (F2022) Computer Organization and Architecture

Answer Key for Assignment 7

Points: 8
Due: October 30, 2022 (11:59 p.m.)

Note: Always Show the intermediate steps leading to your answers for all the problems.
Note: The assignment does NOT allow the grace period of 3 days for late submission
because the answer key for the assignment will be posted on Moodle right after the due
date/time passes so that you can use it to study for the 2nd exam to be held on 11/01
(Tuesday) in class.

(1) (2 points) (1.1) Determine the number of bits required to address a 16M × 8, byte-addressable
main memory. (1.2) Determine the memory capacity (number of bytes in power of 2) for a
4M × 32, word addressable main memory.

(1.1) 16MB = 24 × 220 = 224 , so a total of 24 bits are needed to address the main memory.
(1.2) 4MB × 4 = 22 × 220 × 22 = 224 bytes.

(2) (4 points) For a word-addressable memory having 256 words that is 16-way high-order
interleaved, (2.1) Determine the bank number and the offset (both in binary) in the bank for
address 17910. (2.2) Do the same problem shown in (2.1) above if the memory supports low
order interleaving.

(2.1) A memory with 256 words requires 8 bits for each address (i.e. 256 = 28) and 4 bits to
locate each bank (i.e. 16 = 24). Since 17910 = 101100112, the bank number is 10112 and
the offset is 00112.
(2.2) The bank number is 00112 and the offset is 10112.

(3) (2 points) Suppose a computer has a memory unit with 24 bits per word. The instruction set
contains 150 different operations. All instructions have an opcode part and an operand part
allowing for only 1 address. Also each instruction is stored in one word of memory. (3.1)
Determine the number of bits required for the opcode. (3.2) Determine the number of bits
required for the operand.

(3.1) Since there are 150 different operations, the format needs 8 bits (i.e. 28 = 256) to
contain all of the opcodes.
(3.2) There are 24 – 8 = 16 bits left for the operand part.

Page 1 of 2
Follow the criteria shown below to prepare and turn your assignment in to Moodle.

(1) Your assignment MUST be submitted to Moodle (on time or late).


(2) Your assignment can be either typed with a word processor or by handwriting (be legible).
The file types that are allowed to use for the assignment are specified on Moodle.

Page 2 of 2

You might also like