Docsity

Computer Architecture and Design Homework 5: Computer Architecture Problems - Prof. Vishwa, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
ELEC 5200-001/6200-001 Computer Architecture and Design
Fall 2009
Homework 5 Problems
Assigned 10/2/07, due 10/16/07
Problem 1: How many cycles will jump and link (jal) instruction take on a multicycle
datapath? Describe datapath operations that occur in each cycle. Sketch a
schematic showing those datapath hardware units that participate in the
execution of this instruction.
Problem 2: The control for a multicycle MIPS datapath is implemented as a finite-
state machine. Suppose, all possible 6-bit opcodes are classified into one of five types:
1. load or store
2. R-type
3. Branch type
4. Jump type
5. Illegal
All illegal opcodes require the same action, i.e., exception, for which the control
signals required by the datapath have been determined. Illustrate what modification
you will make to the state diagram.
Problem 3: Suppose for a single cycle datapath (one-stage pipeline) total hardware delay
is D and the register operation of PC takes an additional delay r, such that r << D. Show
that for n-stage pipeline (neglecting hazards),
(a) For small n, latency โ‰ˆ D and throughput โ‰ˆ n/D.
(b) For very large n, latency โ†’ nr and throughput โ†’ 1/r.
(c) For all n, throughput ร— latency = n.
Where latency is the execution time of the first instruction in a stream and throughput is
number of instructions executed per second (generally neglecting the latency).

Partial preview of the text

Download Computer Architecture and Design Homework 5: Computer Architecture Problems - Prof. Vishwa and more Assignments Computer Architecture and Organization in PDF only on Docsity!

ELEC 5200-001/6200-001 Computer Architecture and Design Fall 2009 Homework 5 Problems Assigned 10/2/07, due 10/16/ Problem 1: How many cycles will jump and link (jal) instruction take on a multicycle datapath? Describe datapath operations that occur in each cycle. Sketch a schematic showing those datapath hardware units that participate in the execution of this instruction. Problem 2: The control for a multicycle MIPS datapath is implemented as a finite- state machine. Suppose, all possible 6-bit opcodes are classified into one of five types:

  1. load or store
  2. R-type
  3. Branch type
  4. Jump type
  5. Illegal All illegal opcodes require the same action, i.e., exception, for which the control signals required by the datapath have been determined. Illustrate what modification you will make to the state diagram. Problem 3: Suppose for a single cycle datapath (one-stage pipeline) total hardware delay is D and the register operation of PC takes an additional delay r, such that r << D. Show that for n-stage pipeline (neglecting hazards), (a) For small n, latency โ‰ˆ D and throughput โ‰ˆ n/D. (b) For very large n, latency โ†’ nr and throughput โ†’ 1/r. (c) For all n, throughput ร— latency = n. Where latency is the execution time of the first instruction in a stream and throughput is number of instructions executed per second (generally neglecting the latency).