Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Psuedo-Instructions (25 points). Consider the case of the MIPS ulw instruction that stores a word to an unaligned memory address (e.g., a word stored
2. Psuedo-Instructions (25 points). Consider the case of the MIPS ulw instruction that stores a word to an unaligned memory address (e.g., a word stored to the address 0x 10010003). ulw is not supported in hardware, rather it is a pseudo-instruction (a) (15 points) Support ulw in software. First, finish labelling the memory diagram provided and shade in the bytes you are intending to load (you may assume either endianness). Second, using only the basic arithmetic, logical, and shift instructions, along with lw provide nstance that corresponds to the following ulw instruction a sequence of instructions ulwSad, 3($t0) # same operands as 1w expects # you may assume $t0's value is # 0x10010000 Word Address Byte Byte |Byte | Byte 0x10010000 (b) (10 points) Why does the MIPS ISA not implement a ulw instruction? Provide a technical reason. [Hint: think about how you 'd have to modify your Lab 4 datapath to support this.j 2. Psuedo-Instructions (25 points). Consider the case of the MIPS ulw instruction that stores a word to an unaligned memory address (e.g., a word stored to the address 0x 10010003). ulw is not supported in hardware, rather it is a pseudo-instruction (a) (15 points) Support ulw in software. First, finish labelling the memory diagram provided and shade in the bytes you are intending to load (you may assume either endianness). Second, using only the basic arithmetic, logical, and shift instructions, along with lw provide nstance that corresponds to the following ulw instruction a sequence of instructions ulwSad, 3($t0) # same operands as 1w expects # you may assume $t0's value is # 0x10010000 Word Address Byte Byte |Byte | Byte 0x10010000 (b) (10 points) Why does the MIPS ISA not implement a ulw instruction? Provide a technical reason. [Hint: think about how you 'd have to modify your Lab 4 datapath to support this.j
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started