Ex. 1 C01 Assignment 1
Ex. 1 C01 Assignment 1
ID:
Class:
Part A.
1. A microprocessor, with clock rate of 10 MHz, has multiply instruction. The
instruction has five stages: fetch opcode (three clock cycles), fetch operand address
(three cycles), fetch operand (three cycles), multiply operation (three cycles), store
operand (three cycles).
a. Assuming that we have to add 3 cycles in each memory read and memory write
operation and multiply operation takes 10 cycles instead of 3 cycles. By what
amount (in percent) will the duration of the instruction increase?
b. A keyboard actives an interrupt request line at the beginning of stage: fetch
operand address. After how long does the processor enter the interrupt processing
cycle?
Answer:
2. Cache memory and main memory have the following elements:
• The cache can hold 128 Kbytes.
• Data are transferred between main memory and the cache in blocks of 16 bytes
each.
• The byte directly addressable main memory consists has 24-bit address.
a. What is the maximum directly addressable memory capacity (in bytes)?
b. In case of direct mapped cache, show the format of main memory addresses.
c. Into what line would bytes with each of the following addresses be stored?
1100 0011 0011 0100 0011 0100
1101 0000 0001 1101 0001 1101
Answer
Part B
1. Which of the following component(s) do (does) not belong to central
processing unit:
A. I/O modules
B. Arithmetic and logic unit
C. Set of general-purpose registers
D. Control unit
2. Which of the following statements belongs to the content of Von
Newmann's principle?
A. The computer uses a program counter to indicate the location of the
next instruction
B. The computer can control all activities by a single program
C. Computer memory is not addressable
D. Each instruction must have a memory location containing the address of
the next instruction