Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data memory has two corresponding operations, Load and Store. In the load operation, an element from the data memory will be read and loaded to
Data memory has two corresponding operations, Load and Store. In the load operation, an element from the data memory will be read and loaded to register file, while in the store operation an element from the register file will be written to and stored into a location in the data memory. We have listed a sequence of tasks in the load_store_steps.txt file which will implement an example of store and load operations. Go through them and answer the following two questions: What would be the contents of the registers in the register file after the steps described in file? Explain what your tests do functionally (e.g. load register 1, store value x in memory location y) For all the variables, the initial value are 0. - - - - - - - 1- Press the right button to reset everything. 2- Set the ALUOp to 1 (for 'inv' operation) 3- Set regfile write address to 3. 4- Set RegWrite to 1 5- Reset RegWrite back to o ------ 6- Change the regfile_read_address1 to 3 7- Change the ALUOp to Ox5 (for 'sll' operation) 8- Change the regfile_write_address to 1 9- Set RegWrite to 1 10- reset Regwrite back to O - - - - - - - 11- Set the ALUSrc2 to 1 12- Set the value of alu_input2_vio(instr_i) to o 13- Set the ALUOP to 0 (for 'add' operation) 14- Change the regfile_read_address1 to 3 15- Change the regfile read address2 to 1 16- Set MemWrite to 1 17- Reset MemWrite back to o 18- Change the regfile_read_address1 to 1 19- Set the value of alu_input2_vio(instr_i) to 1 20- Set the ALUSrc2 to 1 21- Set the ALUOp to o for 'add' 22- Set MemToReg to 1 23- Set regfile_write address to 2 24- Set RegWrite to 1 25- Set Regwrite to o
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