Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Have no idea how to do this...pls help me as much as u can and tell me if you have done everything. Lab: Observing Data
Have no idea how to do this...pls help me as much as u can and tell me if you have done everything.
Lab: Observing Data Flow within the Data Path Simulator (PathSim) Goal: With the completion of this lab you will understand the values placed on lines in the data path for the R-type instructions as discussed in sections 4.1 through 4.4 2. Open PathSim by running its jar filc PathSim.jar. Sclect and copy thc snippct of asscmbly code appcaring in the box bclow and paste it into thc Asscmbly Code textarca of PathSim. You can do some text-editing within this area. Next, assemble the set of instructions by pressing the Assemble button. The snippet of code is wriuen intentionally with two syntax errors. Thus, when you assemble the code, an alert box will popup, showing a line containing an error. The PathSim assembler is a "first error and out" assembler and, therefore, you will only see one error at a time. Now, fix the first error and (re-)assemble the edited code. Since there is another error in the code, you will see another alert box showing the second error. Fix the second error, assemble the edited code and it should now assemble successfully. If another error should appear and on the last line, it is due to a missing end-of-line marker. PathSim expects that ALL lincs arc terminated with an cnd-of-linc 3. Select and copy the three lines of words with addresses given after the comment #Data lemory and paste i o the aaln uttextare Press the a M mon button and the data should 4. Select and copy the one word with register number appe ring after the comment #Register Value and paste i in Re ster n Press he Loa button appearing below the e ernpu 5. Place the mouse over the rectangle marked PC shown in the data path diagram and left-click the mouse. Left-clicking on PC steps through the machine instructions that were assembled load successfully. If not, check to sce that there are no empty lines nor spaces within the text. Also, make sure the third linc is terminated with an end-of-line markcr. area; the word should load successfully into the specified register. Ifnot, make sure that the line is terminated with an end-of-line marker and there are not empty lines nor spaces. from the snippet of assembly code, one instruction per click. As you step through the code, place the mouse over data lines shown in the data path diagram and left-click the mouse. A popup box will appcar showing the valuc which is on that linc. Obscrve the valucs placed on data lincs as you step through cach instruction. Rccord only the valucs as indicated in the tables given at the end of this document. But make sure you also understand how the values are established for all instructions. 6. Close PathSim after you have stepped through each of the machine instructions and recorded your observed values. You have completed this lab exercise #Assembly Code lw $a0, 0(St1) lw $al, 4(Stl) lw $a2 8(Stl) add St2, Sa0, Sal sub St3, Sa0, Sa4 and St4, $a0, $a2 or St5, Sal, Sa2 sw St5, 0xlc(St) Data Memory +Data Memory 008:00000128 00C:0000a35a 010:0000f696 #Register Values 09:00000008 Name lw $a2, 8($t1 Mux Registers ALU Sign Ext V15-0 Mux Alu Cont Input Input Input Input Control Output Output 1/25-21 IT20-16 WriteReg WriteData RegWrite ReadDatal ReadData2 I[20-16/ ReadData2 II5-0 ReadDatal IfI5-II From Si RegDst AL USrc ALUO ALUControl WriteR no labcl no labcl ALUControlZero ALUResuit add $t2, $a0, $a1 Mux Mux Registers ALU Sign Ext I15-0 Alu Cont Input Input Input Input Control Output Output (25-21 I/20-16 WriteRe WriteData RegWrite ReadData l ReadData2 I[20-16 ReadData2II5-0 ReadData I I/15-11 From SignExt From Mux RegDst ALUSrc ALUO ALUControl WriteReg no label (no label) ALUControlZero ALUResult sub $t3, $a0, $a1 Mux Mux ALU Registers U25-21 Sign Ext l{ 15-0 Alu Cont Input I[20-16 ReadData2 II5-0 ReadDatal Input 1[15-11] I[20-16) From SignExt From Mux Input Input Control Output Output WriteReg WriteData RegWrite ReadDatal ReadData2 RegDst ALUSrc ALUO ALUControl WriteRe no label no label ALUControl Zero ALUResult Mux Sign Ext I15-0 Mux Alu Cont ALU Registers I$25-21 Input I[20-16 ReadData2 I5-0 ReadDatal Input 15-11] I[20-167 From Mux rom SignExt Input Input Control Output Output WriteRe WriteData RegWrite ReadData 1 ReadData2 RegDst ALUSrc ALUO ALUControl WriteRe no label no label ALUControl Zero ALUResult or $t5, $a1, $a2 Sign Ext Mux Alu Cont ALU Registers 25-21 Mux Input I[20-16 ReadData2 II5-0 ReadData l Input 1[15-11/ I[20-16j From SignExt From Mux Input Input Control Output Output WriteRe WriteData RegWrite ReadData l ReadData2 RegDst ALUSrc ALUOp ALUControl WriteRe no label (no label) ALUControl Zero ALUResult sw St5, 1c(St1) Mux Mux ALU Sign Ext If15-0 Registers Alu Cont Input Input Input Input Control Output Output 25-21 I[20-16 WriteReg WriteData I[20-16 ReadData2 I5-0 ReadDataI I15-11 From SignExt From Mux RegDst ALUOp RegWrite ReadData l ReadData2 ALUSrc ALUControl WriteRe no label (no label ALUControl| Zero ALUResult Lab: Observing Data Flow within the Data Path Simulator (PathSim) Goal: With the completion of this lab you will understand the values placed on lines in the data path for the R-type instructions as discussed in sections 4.1 through 4.4 2. Open PathSim by running its jar filc PathSim.jar. Sclect and copy thc snippct of asscmbly code appcaring in the box bclow and paste it into thc Asscmbly Code textarca of PathSim. You can do some text-editing within this area. Next, assemble the set of instructions by pressing the Assemble button. The snippet of code is wriuen intentionally with two syntax errors. Thus, when you assemble the code, an alert box will popup, showing a line containing an error. The PathSim assembler is a "first error and out" assembler and, therefore, you will only see one error at a time. Now, fix the first error and (re-)assemble the edited code. Since there is another error in the code, you will see another alert box showing the second error. Fix the second error, assemble the edited code and it should now assemble successfully. If another error should appear and on the last line, it is due to a missing end-of-line marker. PathSim expects that ALL lincs arc terminated with an cnd-of-linc 3. Select and copy the three lines of words with addresses given after the comment #Data lemory and paste i o the aaln uttextare Press the a M mon button and the data should 4. Select and copy the one word with register number appe ring after the comment #Register Value and paste i in Re ster n Press he Loa button appearing below the e ernpu 5. Place the mouse over the rectangle marked PC shown in the data path diagram and left-click the mouse. Left-clicking on PC steps through the machine instructions that were assembled load successfully. If not, check to sce that there are no empty lines nor spaces within the text. Also, make sure the third linc is terminated with an end-of-line markcr. area; the word should load successfully into the specified register. Ifnot, make sure that the line is terminated with an end-of-line marker and there are not empty lines nor spaces. from the snippet of assembly code, one instruction per click. As you step through the code, place the mouse over data lines shown in the data path diagram and left-click the mouse. A popup box will appcar showing the valuc which is on that linc. Obscrve the valucs placed on data lincs as you step through cach instruction. Rccord only the valucs as indicated in the tables given at the end of this document. But make sure you also understand how the values are established for all instructions. 6. Close PathSim after you have stepped through each of the machine instructions and recorded your observed values. You have completed this lab exercise #Assembly Code lw $a0, 0(St1) lw $al, 4(Stl) lw $a2 8(Stl) add St2, Sa0, Sal sub St3, Sa0, Sa4 and St4, $a0, $a2 or St5, Sal, Sa2 sw St5, 0xlc(St) Data Memory +Data Memory 008:00000128 00C:0000a35a 010:0000f696 #Register Values 09:00000008 Name lw $a2, 8($t1 Mux Registers ALU Sign Ext V15-0 Mux Alu Cont Input Input Input Input Control Output Output 1/25-21 IT20-16 WriteReg WriteData RegWrite ReadDatal ReadData2 I[20-16/ ReadData2 II5-0 ReadDatal IfI5-II From Si RegDst AL USrc ALUO ALUControl WriteR no labcl no labcl ALUControlZero ALUResuit add $t2, $a0, $a1 Mux Mux Registers ALU Sign Ext I15-0 Alu Cont Input Input Input Input Control Output Output (25-21 I/20-16 WriteRe WriteData RegWrite ReadData l ReadData2 I[20-16 ReadData2II5-0 ReadData I I/15-11 From SignExt From Mux RegDst ALUSrc ALUO ALUControl WriteReg no label (no label) ALUControlZero ALUResult sub $t3, $a0, $a1 Mux Mux ALU Registers U25-21 Sign Ext l{ 15-0 Alu Cont Input I[20-16 ReadData2 II5-0 ReadDatal Input 1[15-11] I[20-16) From SignExt From Mux Input Input Control Output Output WriteReg WriteData RegWrite ReadDatal ReadData2 RegDst ALUSrc ALUO ALUControl WriteRe no label no label ALUControl Zero ALUResult Mux Sign Ext I15-0 Mux Alu Cont ALU Registers I$25-21 Input I[20-16 ReadData2 I5-0 ReadDatal Input 15-11] I[20-167 From Mux rom SignExt Input Input Control Output Output WriteRe WriteData RegWrite ReadData 1 ReadData2 RegDst ALUSrc ALUO ALUControl WriteRe no label no label ALUControl Zero ALUResult or $t5, $a1, $a2 Sign Ext Mux Alu Cont ALU Registers 25-21 Mux Input I[20-16 ReadData2 II5-0 ReadData l Input 1[15-11/ I[20-16j From SignExt From Mux Input Input Control Output Output WriteRe WriteData RegWrite ReadData l ReadData2 RegDst ALUSrc ALUOp ALUControl WriteRe no label (no label) ALUControl Zero ALUResult sw St5, 1c(St1) Mux Mux ALU Sign Ext If15-0 Registers Alu Cont Input Input Input Input Control Output Output 25-21 I[20-16 WriteReg WriteData I[20-16 ReadData2 I5-0 ReadDataI I15-11 From SignExt From Mux RegDst ALUOp RegWrite ReadData l ReadData2 ALUSrc ALUControl WriteRe no label (no label ALUControl| Zero ALUResult
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