From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,1ab43c24eff070d4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f8403,1ab43c24eff070d4 X-Google-Attributes: gidf8403,public X-Google-Thread: 110292,1ab43c24eff070d4 X-Google-Attributes: gid110292,public X-Google-ArrivalTime: 1993-11-13 23:19:28 PST Xref: gmd.de comp.sys.powerpc:3228 comp.sys.intel:9229 comp.sys.dec:11818 Path: gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!mcsun!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!bloom-beacon.mit.edu!ai-lab!life.ai.mit.edu!rang From: rang@gnu.ai.mit.edu (Anton Rang) Newsgroups: comp.sys.powerpc,comp.sys.intel,comp.sys.dec Subject: Re: What does "superscalar" mean? Date: 13 Nov 93 17:24:43 Organization: Minnesota Angsters Message-ID: References: <1993Nov12.192353.3758@peavax.mlo.dec.com> <2c1fpm$c18@jac.zko.dec.com> <13NOV199313283561@utkvx.utk.edu> NNTP-Posting-Host: kropotkin.ai.mit.edu In-reply-to: dellwo@utkvx.utk.edu's message of Sat, 13 Nov 1993 18:28:00 GMT In article <13NOV199313283561@utkvx.utk.edu> dellwo@utkvx.utk.edu (This Side Up) writes: >When the processor reads an instruction from memory can't it >read only one instruction per clock cycle? How does a >superscalar processor execute more than one command per >cycle. Does the compiler combine commands into one long >word. Newer microprocessors typically have a 64-bit or wider path to memory. On an x86, this means you could conceivably load up to eight 8-bit instructions in one clock cycle (though most instructions are more than one byte); on a 601, two 32-bit instructions; etc. Just as importantly, once instructions are in the cache, the internal data path from cache to instruction buffer can be large. It's 128 bits in the PPC 601, which means up to eight instructions can be loaded from cache in one clock cycle. I'm not familiar with the Pentium or AXP processors' internal buses, but I suspect they're at least as large. To execute multiple instructions, the processor looks simultaneously at more than one instruction. On the PPC 601, there are three units which examine the instruction buffer. One can start an integer op, one can start a floating-point op, one can decode branches. There's some logic which guarantees that instructions which should not be executed don't get "committed" (have results written back) -- e.g. an integer operation that occurs after a branch, when the processor thought the branch would go one way and then it turned out not to. Again, I'm not familiar with the Pentium, but I believe it has two integer pipelines which would mean it could execute two integer instructions at once if they don't depend on each other. Not sure about the FP logic. Really high-end superscalar machines, like the VAX 9000 series, can decode complex instructions into simpler data-flow units and use a lot of special hardware to execute pieces of the instructions out of order, too, but I don't think any microprocessors do yet. >By the way, I've always called 32 bits a "long word." >What do you call 64 bits now? Just curious. Depends where you come from. On most Crays, 64 bits is a word. I've heard "doubleword" used for 64-bit stuff in VAX and 680x0 environments. Maybe x86 people use the same? -- Anton Rang (rang@gnu.ai.mit.edu)