From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,5b59af3acfc3c403 X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,5b59af3acfc3c403 X-Google-Attributes: gid1164f8,public From: jfm6@jagunet.com (John McNamara) Subject: Re: 21164 architecture Date: 1997/10/26 Message-ID: #1/1 X-Deja-AN: 285012167 Distribution: usa References: <62r1pd$o71$1@andros.cygnus.com> Organization: jaguNET Access Services Newsgroups: comp.sys.dec,comp.arch 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