From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3501 invoked from network); 16 Dec 1998 20:21:16 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Dec 1998 20:21:16 -0000 Received: from mea.tmt.tele.fi (root@mea.tmt.tele.fi [194.252.70.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA20436 for ; Wed, 16 Dec 1998 15:11:43 -0500 Received: by mea.tmt.tele.fi id <92281-18653>; Wed, 16 Dec 1998 20:10:45 +0200 Subject: Re: 21164 speed In-Reply-To: <19981216180850.D2290@zib.de> from Thorsten Koch at "Dec 16, 98 06:08:50 pm" To: axp-list@redhat.com Date: Wed, 16 Dec 1998 20:10:45 +0200 (EET) From: Matti Aarnio Phone: +358-20402082 (office, with redirection to cellular) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <19981216181046Z92281-18653+22@mea.tmt.tele.fi> > Hello, > > does anybody know if the 21164 can get more than one result > per cycle ? > Is there a sequence of instructions like > > addt $f0,$f1,$f2 > addq $1,$2,$3 > mult $f3,$f4,$f5 > addq $4,$5,$6 > > that executes in less than 4 cycles ? No, in fact they take more -- FP multiplier has pipeline latency of 8 cycles. FP-add pipeline takes also 8 cycles. (archive digging --- dec21164pchwm.pdf found ...) The 21164 has two parallel integer pipes and two parallel floating-point pipes, plus registerfile/memory load/store processing, plus a few other gimmics. ipipe0: add, log, shift, ld, st, imul, cmp, sext, cmov, byte, word, mvi ipipe1: add, log, br, cmp, cmov fpipe0: ld, st, add, div, fbr, fcmovs, fcpy fpipe1: mul, fcmovs, fcpys For instruction issue slotting rules see the 21164 Hardware Reference Manual. For short, under optimal conditions you can issue up to two integer, and two FP operations per each clock cycle. That is quite much indeed. It even looks like you can issue matrix kernel Multiply+Add pipelined instruction pair at full throttle of the system and thus calculate the matrix multiplies quite fast.. .. like one product per every second clock cycle, if you can keep the MUL+ADD pipe full by doing preloads from memory to cache, and then doing final loads, and address index calculation in parallel to the FP side processing. You will need also loop unrolling, and register resource rotating so that you don't force pipeline stalls at register file accesses -- and allow processing pipeline delay! > Regards, > Thorsten /Matti Aarnio