Assignment 1 Solution
Assignment 1 Solution
Assignment 1 - Solution
Due March 18, 2014
as necessary.
a. How much energy do you save if you execute at the current speed and turn off the
system when the computation is complete?
b. How much energy do you save if you set the voltage and frequency to be half as
much?
Solution
4. [20 = 5 x 4] For the following assume that values A, B, and C reside in memory.
Also assume that instruction operation codes are represented in 8 bits, memory
addresses are 64 bits, and register addresses are 6 bits.
For each instruction set architecture shown in Figure A.2 (stack, accumulator,
register-memory, register-register), how many addresses, or names, appear in each
instruction for the code to compute C = A + B, and what is the total code size?
Solution