Describe a branch hazard


Discussion:

One type of pipeline hazard that can occur is a branch hazard.

a. Describe what a branch hazard is, and what causes a branch hazard.

b. Give a relevant example using the MIPS instruction set architecture. Compare and contrast how the code will proceed it the branch is taken, vs if the branch is not taken, and explain how this affects the pipeline.

c. Fully describe at least TWO of the techniques, OTHER than stalling, that can be used (in an attempt) to overcome branch hazards.

 

Solution Preview :

Prepared by a verified Expert
Other Subject: Describe a branch hazard
Reference No:- TGS01931831

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)