Assemble and load into the data path simulator Ex4_1.mas (the same program you looked at as part of Lab 1). [You will need to assemble the code, to generate a .mex file.]
Set the stepping speed (using the Set Speed button) to a rate at which you can closely examine register values and RTL instructions change with the movement of data. (10,000 is a good value to start with.)
Step through several assembly language statements in example 4_1. Take your time. Figure out how the displayed RTL commands correspond to changes in register contents. Examine which parts of the process are common to all instructions and which parts are specific to particular assembly language commands. (Spend at least 10 minutes on this activity.)
MARIE DP simulator questions:
Why does the simulator use 3-numeral hex values to specify the contents of the PC and MAR (bottom right) when all the other registers use 4 numerals?
Which part(s) of the diagram turn pink, when does it/they and what does the color change indicate? (What is the part doing?) If you don't see anything turning pink, set your step speed to a bigger number and try again.
What is stored in the IR when the AC is set to 000A for the second time? What does the IR change to 3 clock cycles (lines in the bottom right window) later? Where does 12 bits of the IR data go a few clock cycles after the instruction (the second IR contents you identified) starts?
What does it mean when the blue lines at the bottom of the diagram (above the RTL instructions) turn red? What does it mean when some of the blue lines at the bottom turn red and some stay blue? (Looking closely at the RTL instructions and which instructions correspond to which color changes may help you figure this out.)
What does it mean when the red line between the MAR and main memory turns red? What RTL instruction(s) are visible at times when the line between MAR and main memory is red?
Upload a plain text (.txt) or MS Word document containing your answers to the questions above (and your name) to Canvas by the assignment deadline.
Last updated 4/23/2024