




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Name: ____________________________________ uname: _____________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
Scores:
Register Value r3 0x
Memory Location Value 0x03100000 0x 0x03100004 0x 0x03100008 0xDEADBEEF 0x0310000C 0x0BADBEAD 0x03100010 0x00FADDAD 0x03100014 0x 0x03100018 0x 0x0310001C 0x
Assembly command Aligned? Bus contents Value in r8 once assembly command is done lha r8, 7(r3)
lwz r8, 3(r3)
stw r3, 0(r2) stbu r3, 2(r2) stwx r3, r2, r
After the code segment completes, what are the values in these memory locations? You may ignore any memory location that is written to but not shown in the table. [10]
2). You are given two macros that decode A31-A30 and TSIZ[0:1] according to the tables found below (First column is inputs, rest are outputs)
TSIZ[0:1] byte^ 1/2word^ word 0,0^0 0 0,1^1 0 1,0 0 1 0
Design a macro to provide the control logic for byte, ½ word and word read and write access for the proceeding module. The macro should have the following hierarchical connections. Use the space provided below. [20]