Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the 'basic' pipeline shown below, with the stages: Instruction Fetch, Instruction Decode, Execute Address, Memory Access, Write Back: THIS IS THE FOLLOWING CODE: add

Given the 'basic' pipeline shown below, with the stages: Instruction Fetch, Instruction Decode, Execute Address, Memory Access, Write Back:

image text in transcribed

THIS IS THE FOLLOWING CODE:

add x3, x1, x2 // x3 = x1 + x2 st x3, 2(x4) // mem[2+x4] = x1 beq x3,x5,L // if x3==x5 branch to L

THIS IS A MANUAL TEST EXAMPLE:

image text in transcribed

Q1. FILL IN THE FOLLOWING BLANKS FOUND IN SQUARE BRACKETS (Note: some questions maybe multiple choice denoted as / for each option) :

Instruction Fetch: read the instruction [ENTER INSTRUCTION NUMBER] at address [FILL IN ADDRESS NUMBER] and increment the PC to the value [ENTER VALUE]

Instruction Decode: decode the [FILL ANSWER] instruction, read the source registers [FILL REGISTER NUMBER] and [FILL REGISTER NUMBER]from the register file

Execute Address : perform the ALU operation [ADD/ SUB/ MUL/ DIV/ REM/ AND/ OR/ XOR] on the value read from the registers[FILL REGISTER NUMBER] and the immediate value [FILL REGISTER NUMBER]

Memory Access: write the value read from register [FILL ANSWER] to the address calculated by the ALU

Write Back: [there is no writeback / write the ALU result back to register x1 / write the ALU result to the register x4]

\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline Address & Instruction & Clock 1 & Clock 2 & Clock 3 & Clock 4 & Clock 5 & Clock 6 & Clock 7 & Clock 8 \\ \hline 0000 & add x3,1,2 & IF & ID & EX & & WB & & & \\ \hline 0004 & st x1,2(4) & & IF & ID & EX & MEM & WB & & \\ \hline 0008 & beq x3,5,L & & & IF & ID & EX & MEM & WB & \\ \hline \end{tabular}

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Address the customer by name.

Answered: 1 week ago

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago