CSCI 2321 (Principles of Computer Design), Spring 2015:
Homework 4

Credit:
30 points.

Reading

Be sure you have read all assigned sections of Chapter 4.

Notes

Problems

Do the following problems. You may write out your answers by hand or using a word processor or other program, but please submit hard copy, either in class or in one of my mailboxes (outside my office or in the ASO).

  1. (20 points) In this problem your mission is to trace through what happens during execution of different instructions using the single-cycle implementation of the MIPS ISA as represented in Figure 4.17 in the textbook. You are to assume that at the beginning of a clock cycle the following is true. (0xN denotes a base-16 value of N, e.g., 0x10 denotes 16 in base 10.) At the point at which values are written into state elements, what values will the following have? Give each in binary form with the appropriate number of bits, or say ``not used'' if the value does not make any difference to what is saved into the state elements. (E.g., if RegWrite is zero, the values of Write register and Write data are not used.) (Unless otherwise noted, ``inputs'' or ``outputs'' here are the ones shown in black -- so you don't have to repeat the values of the control signals.)

    Instructions to trace:

  2. (10 points) For this problem your mission is to describe what changes, if any, would be needed to the single-cycle implementation sketched in Figure 4.24 to allow it to execute additional instructions: Would you need additional logic blocks or state elements? Would you need additional control signals? What values would be needed for the existing control signals and any new ones? (``Existing control signals'' here refers to the outputs of the logic blocks labeled Control and ALU control.)

    Instructions to add:



Berna Massingill
2015-04-21