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:
- 0110 = Load AC from I/O
- 0011 = Store AC to I/O
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:
- Load AC from device 6
- Add contents of memory location 940
- 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.
- What is the maximum directly addressable memory capacity
- Discuss the impact on the system speed if the microprocessor buys has:
- a 32-bit local address bus and a 16-but local data bus or
- a 16-bit local address bus and a 16-bit local data bus.
- 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];
- Give one example of the spatial locality in the code
- Give one example of the temporal locality in the code
[Back to the Assignments Index]