A controller's task has four sequential contributions, with no overlap:
Contribution
Original elapsed time
Input
1.50 ms1.50\ \text{ms}1.50 ms
All memory transfers
4.00 ms4.00\ \text{ms}4.00 ms
All ALU operations
2.00 ms2.00\ \text{ms}2.00 ms
Output
0.50 ms0.50\ \text{ms}0.50 ms
Two redesigns are evaluated separately against the original controller:
For each redesign, all other contributions remain unchanged. The timings include all control activity and other overhead. The target is an elapsed-time reduction of at least 20%20\%20% from the original task. Which assessment is correct?
A takes 7.00 ms7.00\ \text{ms}7.00 ms; B takes 6.00 ms6.00\ \text{ms}6.00 ms; only B meets the target.
A takes 6.00 ms6.00\ \text{ms}6.00 ms; B takes 7.00 ms7.00\ \text{ms}7.00 ms; only A meets the target.
A takes 7.00 ms7.00\ \text{ms}7.00 ms; B takes 4.00 ms4.00\ \text{ms}4.00 ms; only B meets the target.
A takes 4.00 ms4.00\ \text{ms}4.00 ms; B takes 4.00 ms4.00\ \text{ms}4.00 ms; both meet the target.
Unlock full course notes by signing up
Adding the unit timings
A measurement controller performs one task with the following timings:
All activities occur sequentially without overlap. These times include all associated instruction fetching and control activity; there are no other delays. What is the total elapsed time? Give your answer in milliseconds, to two decimal places.
Following successive register updates
A test board contains two registers, R and S. A register is a small storage location inside the processor. Its ALU reads operands and produces results.
Initially, R contains 6 and S contains 4. The board completes the following actions in order. Each action reads the current values before writing its result, and only the named destination changes. Assume every result fits in its register.
Replace R with R + S.
Diagnosing a missing result update
A simplified CPU executes an ADD instruction with operands 111111 and 777. The correct operands reach the ALU, and the ALU is selected for addition. Its output is connected to a result register that previously held 555.
The result register captures new data at a clock edge only when its load signal is 111; when the load signal is 000, it retains its previous value. At the relevant clock edge, the measured load signal is 000. There are no resets or other writes to this register. A display faithfully reads the register and shows 555. The ALU output value has not been measured.
A technician claims that the displayed value proves the ALU is faulty. Evaluate that claim by addressing all three points:
Measuring the benefit of operand reuse
An instrument processes 2400 independent measurement pairs. Each pair contains values A and B, each occupying 4 bytes in main memory. For every pair, the processor calculates U = A + B and V = A − B, then writes both results to main memory. Each result occupies 4 bytes.
Compare two specified implementations:
Implementation P reads A and B from main memory to calculate U, writes U, reads A and B again to calculate V, and writes V.