Section# _________________ Name ____________________________________ Computer Organization
Assignment 4: CPU Datapath
This assignment is to give you practice identifying:
different parts of the CPU data path and
the flow of data through it for a specific instruction. Generic Data Path
1. Enter the names of the modules in each of the shapes on the next page. Check that there are no missing parts.
2. Enter the names of values entering and leaving each module
3. Draw lines (with arrows) showing the direction of all data flow
Suggestion: Make 1 data path with written labels (you can erase or cross out the given instruction for your ‘standard’ sheet) & Print it 4 times. Alternatively, you can write it on each sheet separately.
Four Specific Data Paths
Use a different colored pencil (or pen) to indicate the flow of data for each of these instructions.
Label the values of the registers and data values.
Hint: You may wish to use the MARS MIPS assembler to ensure you have the correct values for decoding the registers.
Show the flow of the Data Path for each instruction on the next pages A. addi $s4, $zero, 330
B. add$t3,$s4,$s5 C. sw $s3, 12($t3) D. lw $s5, 12($t1)
Instruction: A. addi $s4, $zero, 330 Name:
Instruction: B. add$t3,$s4,$s5 Name:
Instruction: C. sw $s3, 12($t3) Name:
Instruction: D. lw $s5, 12($t1) Name: