CSE341 Computer Organization ... DUE DATE: 7/3/2015 4pm Electronic submission only

advertisement
CSE341
Computer Organization
Summer 2015 Project 1
DUE DATE: 7/3/2015 4pm Electronic submission only
I. Write a MIPS program to add two matrices and store the result in memory starting at
address given in s2. The matrices are of the size 2 X 3 each. The two matrices are stored at
two memory locations whose addresses are given in two registers, s0, s1. Each number in
the matrix is represented in a signed 2’s complement form.
Explain the working of your program. Work must be individually done by yourself.
You may simulate the program using any MIPS simulator to confirm the working. Code
should have detailed comments. (Spim is the simulator suggested).
Deliverables: The code; short writeup on the functioning of the program. Simulation test
input(s); results.
2. Bonus 25 points; For two matrices that are stored as above at starting address given by s0
and by s1, with M1 of size 2 X 3 and M2 is of size 3 X 2; perform the multiplication of M1 X M2
and store the result in memory starting at address given in s2. Simulate using a simulator and
show the results.
Download