Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is for CDA3101 - Introduction to computer organization . Please try to type your answer - handwriting can be very hard to read. Also,

This is for CDA3101 - Introduction to computer organization.

Please try to type your answer - handwriting can be very hard to read.

Also, please include g and h along with a through f.

Thank you for your help!

image text in transcribed

Here is figure 4.24:

image text in transcribed

Thanks again!

4. [16 points (g-h are extra credit)] Suppose the following instruction is fetched by a processor with a single-cycle datapath such as the one shown in Figure 4.24 on page 271 in Patterson and Hennessy 1010 1100 0110 0010 0000 0000 0001 0100 The data memory is all Os and the registers contain the following values at the beginning of the cycle PC ac620014 0 ro r2 r3 r5 10 r12 r31 2 r1 16 Convert to MIPS format. What format instruction is used? What is the output of the sign-extend unit (near the bottom of figure 4.24) for this instruction word? What are the values of the ALUOp and ALUSrc for this instruction? Briefly explain the purpose of the mux just to the left of the ALU? (Use the lower ALU marked ALU) a. b. c. d. e. What is the new PC after this instruction is executed f. What is the output of the Mux that provides an input to the ALU. (The one g. h. controlled by ALUSrc)? What are the inputs for the ALU? What are the inputs for the two Add units? 4. [16 points (g-h are extra credit)] Suppose the following instruction is fetched by a processor with a single-cycle datapath such as the one shown in Figure 4.24 on page 271 in Patterson and Hennessy 1010 1100 0110 0010 0000 0000 0001 0100 The data memory is all Os and the registers contain the following values at the beginning of the cycle PC ac620014 0 ro r2 r3 r5 10 r12 r31 2 r1 16 Convert to MIPS format. What format instruction is used? What is the output of the sign-extend unit (near the bottom of figure 4.24) for this instruction word? What are the values of the ALUOp and ALUSrc for this instruction? Briefly explain the purpose of the mux just to the left of the ALU? (Use the lower ALU marked ALU) a. b. c. d. e. What is the new PC after this instruction is executed f. What is the output of the Mux that provides an input to the ALU. (The one g. h. controlled by ALUSrc)? What are the inputs for the ALU? What are the inputs for the two Add units

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago