Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Rationale behind Alpha chip's branch prediction logic
@ 1993-02-09 17:18 Donald A. Smith
  1993-02-09 20:07 ` Dick Sites
  0 siblings, 1 reply; 2+ messages in thread
From: Donald A. Smith @ 1993-02-09 17:18 UTC (permalink / raw)


Can someone familiar with the Alpha instruction set please explain to me the
precise rationale behind the design of Alpha's branch prediction mechanism? 

The Alpha chip maintains a stack (cache) of subroutine return addresses.
Several of the jump instructions contain a "hint" field that can be
used to tell the prefetch logic that the jump is actually a procedure
return.  Likewise, the displacement field can contain the lower 16 or so
bits of the likely target of the jump.  Yet the target is always contained 
in a register specified in the instruction.  So why during prefetch doesn't
the instruction decoder just look in the specified register?   Is it because
the contents of the register might change? Does the benefit come from avoiding
the cost of accessing the register?

   Don  (dsmith@chaos.cs.brandeis.edu)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Rationale behind Alpha chip's branch prediction logic
  1993-02-09 17:18 Rationale behind Alpha chip's branch prediction logic Donald A. Smith
@ 1993-02-09 20:07 ` Dick Sites
  0 siblings, 0 replies; 2+ messages in thread
From: Dick Sites @ 1993-02-09 20:07 UTC (permalink / raw)



The prefetching decision is made as soon as intructions are pulled
from the I-cache, while the actual branch target calculation happens
many cycles down the pipeline. On the first Alpha AXP chip, a successful
branch prediction saves 4 cycles (more if the target register is updated
just before the branching instruction).
--
	Dick Sites, who does not speak for Digital, but knows a little about
	Alpha AXP(tm). :-)    sites@tallis.enet.dec.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-02-09 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-02-09 17:18 Rationale behind Alpha chip's branch prediction logic Donald A. Smith
1993-02-09 20:07 ` Dick Sites

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox