From: jfm6@jagunet.com (John McNamara)
Subject: Re: 21164 architecture
Date: 1997/10/26 [thread overview]
Message-ID: <jfm6-2610970047540001@port1-28.jagunet.com> (raw)
In-Reply-To: 62r1pd$o71$1@andros.cygnus.com
In article <62r1pd$o71$1@andros.cygnus.com>, billm@cygnus.com (Bill Moyer)
wrote:
> Hello. I've been generating quite a bit of Alpha assembly lately,
>and have a couple of "Why'd they do THAT?" questions about the organi-
>zation of the functional units in the 21164's EBOX.
> The 21164 has two integer pipelines; the first (E0) provides access
>to a multiplier, an adder, a shifter, and a logic box, while the other
>(E1) provides access to just an adder, a logic box, and a branch/jump
>unit. As long as the pipes are kept full, each normally completes
>one instruction per clock cycle. Multiplication, on the other hand,
>takes a long time (8 cycles for a 32-bit multiply, 12 cycles for 64-
>bit), and it would be nice to be able to shove as many instructions
>through the other pipe as possible while E0 is tied up. Alas, I'm
>limited to loads, adds/subtracts, logic, compares, and branches. I
>often find myself wishing that the 21164 either had a shifter in both
>pipes (especially when I'm writing rotate-intensive code) or at least
>had the shifter in E1 instead of E0.
[snip]
>
> -- ttk
>
>--
It's true that the non-pipelined multiply is accessed through E0.
However, E0 is free to perform non-multiply instructions while the
multiply unit is busy. The only restriction is that no instruction
can be issued in E0 two cycles (if I recall correctly) before the
multiply completes. This allows the multiply to write to the register
set when complete. So... don't be too concerned about the shifts.
One of the best tools for profiling alpha code is DCPI (digital
continuous profiling infrastructure), available from one of the
digital research sites. It uses the 21164 performance counters
to accurately profile code. The dcpicalc command gives the
assembly for a routine together with cycles per instruction based
on the counters. It also gives a best guess as to the cause for
stalls in execution: e.g. static conflicts, dcache/icache misses,
mispredicts, etc.
--
John McNamara "I am not a number, I am a free man"
jfm6@jaguNET.com -- No. 6
next prev parent reply other threads:[~1997-10-26 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-24 4:00 21164 architecture Bill Moyer
1997-10-26 4:00 ` John McNamara [this message]
1997-10-26 4:00 ` Douglas H. Borsom
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox