CSC 553 - Operating Systems

Dr. R. M. Siegfried

Assignment #1 - Computer System Overview

Due Tuesday, September 5, 2023

Question #1

Suppose the hypothetical processor of Figure 1.3 also has two I/O instructions:

In these cases, the 12-bit address identifies a paricular external device. Show the program exeuction (using the format of Figure 1.4) for the following program:
  1. Load AC from device 6
  2. Add contents of memory location 940
  3. Store AC to device 5

Assume the next value retrieved from device 5 is 13 and locatrion 940 contains a value of 9.

Question #2

Consider a hypothetical 32-bit microprocessor having 32-bit instructions composed of two fields. The first 10 bits contains the opcode, and the remainder an immediate operand or an operand address.

  1. What is the maximum directly addressable memory capacity
  2. Discuss the impact on the system speed if the microprocessor buys has:
    1. a 32-bit local address bus and a 16-but local data bus or
    2. a 16-bit local address bus and a 16-bit local data bus.
  3. How many bits are needed for the program counter and the instruction register?

Question #3

Consider the following code:

  for (i = 0;  i < 20;  i++)
      for (j = 0;  j < 10;  j++)
          a[i] = a[i] * b[j];
  1. Give one example of the spatial locality in the code
  2. Give one example of the temporal locality in the code

[Back to the Assignments Index]