Assignment 4, CDA4101, Fall 1997

Due Wednesday 11/12 at the start of class.

  1. (1 point) Explain how the AMASK register is used in the microprogram.
  2. Suppose that the ROM that holds the microprogram is 512 words instead of 256. This means that an address into the ROM would need 9 bits.
  3. The design of the hardware of Figure 4-10 has an N bit and a Z bit. Suppose you are to add the O bit and V bit from the previous assignment.
  4. Consider the following Pascal-like procedure (vec is defined in the procedure on page 180):
    procedure Reverse (var x, y: vec; Size: integer); 
      var Count:integer;
    begin
      for Count := 1 to Size do 
        y[Count] := x[Size - Count + 1];
    end;
  5. The following eight macroinstructions are to be added to the Mac-1 language of Figure 4-14:
    ANDD
    AND direct, ac := ac AND m[x]
    ANDL
    AND local, ac := ac AND m[sp + z]
    ORD
    OR direct, ac := ac OR m[x]
    ORL
    OR local, ac := ac OR m[sp + z]
    XORD
    XOR direct, ac := ac XOR m[x]
    XORL
    XOR local, ac := ac XOR m[sp + z]
    NOTD
    NOT direct, ac := NOT m[x]
    NOTL
    NOT local, ac := NOT m[sp + z]

    You are to modify the machine instructions to include these new instructions. You decide what the operation code for each should be. You may change other instructions to accommodate these new instructions, but you must follow these rules:

    Give me the following for this new architecture

  6. (2 points) Draw the PLA for figure 4-19. Assume you have a 4-input, 13-output PLA. The input lines are for the four bits of the op code, the 13 output lines are the labels at the top of the figure. Notice that only 15 combinations of the inputs are needed. So the PLA should have four input lines, 15 AND gates and 13 OR gates. Draw the PLA, it will be easier than drawing all the circuits.
  7. (2 points) What is the difference in size for Mic-1 if a nanostore is used?