lab3 - Score:_ Date:_ Name:_Partner:_ ECE 3055 Laboratory...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Score:_____ Date:______ Name:___________________________Partner:________________________ ECE 3055 Laboratory Assignment 3 Due Date Part I: November 2, Due Date Part II: November 9 Part 1(75%)_______________________ Part 2 (25%)___________________________ Compare the maximum clock rate on the original non-pipelined design to the new clock rate on your pipeline solution from the previous lab. Open the project and use Quartus to calculate it with Processing -> Classic Timing Analyzer Tool . Be prepared to explain these results to the TA. Max Clock frequency _________ Max Clock frequency with pipeline = _________ Once the MIPS is pipelined as in Lab 2, data hazards can occur between the five instructions present in the pipeline. As an example, consider the following program: Sub $2,$1,$3 Add $4,$2,$5 The subtract instruction stores a result in register 2 and the following add instruction uses register 2 as a source operand. The new value of register 2 is written into the register file by SUB $2,$1,$3 in the write-back stage after the old value of register 2 was read out by ADD $4,$2,$5 in the decode stage. In the text, this problem is fixed by adding two forwarding muxes to each ALU input in the execute stage. In addition to the existing values feeding in the two ALU inputs, the forwarding multiplexers can also select the last ALU result or the last value in the data memory stage. These muxes are controlled by comparing the rd, rt, and rs register address fields of instructions in the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

lab3 - Score:_ Date:_ Name:_Partner:_ ECE 3055 Laboratory...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online