22C:160/55:132 Homework 2 sample solutions
Chen Zhang
These are sample solutions, and there are other correct solutions too.
Question 1.
a) No additional components needed.
Fetch:
IR <= Memory[PC];
PC <= PC + 4;
Decode:
A <= Reg[IR[25:21];
Excution:
ALUOu
22C:160/55:132 Homework 5 sample solutions
Chen Zhang
Question 1.
First distribute the calculation of A(j ) and B (j ) to module j . Then use the divide and conquer
approach to minimize memory location contention.
Initially Sum[] = 0
f or(j = 1; j < 64; j