Homework 4: Boards and Circuits

The goals of this homework are:
  1. [1 points] Using TKGate or Digital, implement a circuit that computes the and of two inputs.
  2. [3 points] Using TkGate or Digital, implement a circuit that demonstrates the function of a 4 input multiplexer.
  3. [6 points] Using either TKGate or Digital, implement a WOMBAT program counter.
  4. Two processors, P1 and P2, executing the same instruction set have the following performance:
    Processor Clock Speed CPI
    P1 2.4 GHz 3
    P2 2.9 GHz 3.3
    Answer the following by showing all work:
    1. [2 points] What is the speed of each processor in seconds per instruction.
    2. [2 points] What is the performance of each processor?
    3. [1 point] How much faster is P2 than P1
  5. If P1 from the previous problem has three classes of instructions, with an instruction mix as follows
    Class CPI Percent Used
    A 1 25%
    B 3 25%
    C 4 50%
    Assume you are modifying the compiler and can rearrange the instruction mix by changing the instructions called by your program. Assume the number of instructions is fixed (probably unrealistic in this case).

    Answer the following by showing all work:

    1. [1 point] Verify that the CPI for the above instruction mix is 3.0
    2. [2 points] By shifting instructions from class C to class A what would the new instruction mix need to be so that P1 has roughly the same performance as P2?
      You should be able to do this mathematically, but you may set up a spreadsheet and guess and check if you wish. In either case, indicate how you solved the problem.
    3. [2 points] Why is this not likely to be possible to accomplish this task by only shifting instructions?

Submission