h) How many clock periods does the above code segment take on the machine shown in Figure 4? Fill in the timing table be
Posted: Sat May 14, 2022 6:41 pm
h) How many clock periods does the above code segment take on the machine shown in Figure 4? Fill in the timing table below to show the program is executed on this machine. Assume the register file can be written and read in the same cycle. Page 3 Instruction CP1 CP2 CP3 CP4 CP5 CP6 CP7 CP8 CP9 CP10 CP11 CP12 CP13 CP14 CP15
1. [30 points] This problem pertains to the following sequence of MIPS instructions: ; # and yes the 2 is a number Instruction Address Ox24 Ox28 0x2C Ox30 Ox34 Ox38 Instruction add $1, $2, $1 beq $1, $3, 2 nop add $12, $2, $2 add $13, $12, $2 sw $13, 10 ($10)
PIPELINED DATAPATH WITH CONTROL SIGNALS PC-Sre Hoax IF/ID ID/EX EX/MEM MEM/WB PC Add Add PC Add Branch Sht 2 Regte Figure 4: Machine implementation Men Wite Address A nstruction Read regster 1 Read Read data 1 regster 2 Write Registers Read B data 2 ALUS Zero Merweg Instruction memory 8 AW ALU ALUOME Address Read result dana Data memory CSX Write data Write data Instruction (15-01 16 ALUOut 32 mm Sign extend ALU control MemRead Instruction 120-16] ALUOP Writeres Write Instruction [15-11] Repost
1. [30 points] This problem pertains to the following sequence of MIPS instructions: ; # and yes the 2 is a number Instruction Address Ox24 Ox28 0x2C Ox30 Ox34 Ox38 Instruction add $1, $2, $1 beq $1, $3, 2 nop add $12, $2, $2 add $13, $12, $2 sw $13, 10 ($10)
PIPELINED DATAPATH WITH CONTROL SIGNALS PC-Sre Hoax IF/ID ID/EX EX/MEM MEM/WB PC Add Add PC Add Branch Sht 2 Regte Figure 4: Machine implementation Men Wite Address A nstruction Read regster 1 Read Read data 1 regster 2 Write Registers Read B data 2 ALUS Zero Merweg Instruction memory 8 AW ALU ALUOME Address Read result dana Data memory CSX Write data Write data Instruction (15-01 16 ALUOut 32 mm Sign extend ALU control MemRead Instruction 120-16] ALUOP Writeres Write Instruction [15-11] Repost