Exam2-F06

Exam2-F06 - CPE 315-01 Fall 2006 Midterm 2 Single-Cycle...

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

View Full Document Right Arrow Icon
CPE 315-01 Fall 2006 Midterm 2 Single-Cycle Implementation ______/12 Floating-Point Operations ______/10 Pipelining ______/35 Dependencies ______/43 ______/100
Background image of page 1

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

View Full DocumentRight Arrow Icon
1. Single Cycle Implementation (12 pts) ___12(b) We want to add the following instruction to our single-cycle implementation machine. Look closely at the meaning. op rs rt imm Meaning beqr $2, $3, 500 2 3 500 if ($2 == 500), goto $3 Draw all data paths used for this instruction. Also add any wires, hard-coded values, components and/or muxes that would be necessary to implement this instruction. 2. Floating-Point (10 pts) ___5 (a) Translate the following values to single-precision floating-point format: 6.125 -37.5 ___5 (b) You are writing a program that needs to keep track of the transactions in a bank account. Give two separate reasons why you should not use floating-point numbers for this application.
Background image of page 2
3. Pipelining (35 pts) Assume the following latencies for the pipeline in the book. Remember that branches are calculated in the decode stage:
Background image of page 3

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

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

Page1 / 4

Exam2-F06 - CPE 315-01 Fall 2006 Midterm 2 Single-Cycle...

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

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