• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Computer Architecture Final Pipelining Exam with Complete Solutions

Document preview thumbnail
Preview 1 out of 4 pages

Computer Architecture Final Pipelining Exam with Complete Solutions

Content preview

Computer Architecture Final Pipelining
Exam with Complete Solutions
Define: Control hazard - ANSWER-The term 'control' refers to program control using if-
else statements; which corresponds to using 'branch' instructions in assembly. When '
branch' instruction enters the pipeline, it takes a few clock cycles to know branch
decision. If the branch is not taken, we should process the instructions at PC+4,
PC+8....If the branch is taken, then we should process the the instructions that are
located at the branch address.

Define: Data hazard - ANSWER-This is a conflict over data. An instruction needs a data
that hasn't been computed yet

Define: Structural hazard - ANSWER-conflict over a component. For example, there are
2 instructions in the datapath that need to access the memory in the same clock cycle.
This is a problem since the memory can be accessed by one instruction only during a
clock cycle.

Do small CPUS have pipeline? - ANSWER-No, they have multicycle instead.

How many cycles does each stage of the pipeline take? - ANSWER-1 clock cycle

If the compiler insets the nops, what happens? - ANSWER-Compiler would have to
know the hardware structure. Recompile for different hardware.

If the hardware inserts the nops, what happens? - ANSWER-Each hardware
(CPU)inserts as many nops as it needs

If there is a Load, R-type dependence what fixes can we do? - ANSWER-Insert 2 nops
or insert 1 nop & forward WB->EX

If there is a R-type, R-type dependence what fixes can we do? - ANSWER-Insert 2 nops
or Forward MEM- >EX

In single cyle and multicycle datapaths, how many instructions are in the datapath? -
ANSWER-one. When the instruction finished, the next one gets into the datapath

Is it possible to keep the pipeline full at all times? - ANSWER-No

Is pipelined datapath similar to single cycle or multicycle? - ANSWER-Multi cycle
because they both have stages and multi-clocks per instruction.

True or False. An instruction can skip from EX to WB. - ANSWER-False, since an
instruction may already be in WB if other instructions were already processed.

Document information

Uploaded on
May 8, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LUCKYSTAR2022
3.5
(163)
Sold
931
Followers
726
Items
9664
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions