From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,be70f766e74c3946 X-Google-Attributes: gidfa751,public X-Google-Thread: f6df3,8ecdad84850d9973 X-Google-Attributes: gidf6df3,public X-Google-Thread: 1051a8,8ecdad84850d9973 X-Google-Attributes: gid1051a8,public X-Google-Thread: f8403,5b9190c01066e4f0 X-Google-Attributes: gidf8403,public X-Google-Thread: 1164f8,8ecdad84850d9973 X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,8ecdad84850d9973 X-Google-Attributes: gid110292,public From: Steve Bakke Subject: Re: MIPS R10K vs Alpha Date: 1996/04/13 Message-ID: <4kp63i$s2l@babbage.ece.uc.edu>#1/1 X-Deja-AN: 147345789 distribution: world references: <4kb8a2$m6f@cville-srv.wam.umd.edu> <4kohsh$oe2@vidar.diku.dk> <4kohbl$o7b@vidar.diku.dk> content-type: text/plain; charset=ISO-8859-1 x-xxmessage-id: organization: University of Cincinnati mime-version: 1.0 newsgroups: comp.sys.sgi.hardware,comp.sys.powerpc,comp.sys.powerpc.tech,comp.sys.intel,comp.sys.dec,comp.sys.mips In article <4klvpb$mh0@fnnews.fnal.gov> , morphis@fnalv1.fnal.gov writes: >hmmm, I had thought that RISC instructions were simple enough that breaking >them up would be difficult... while I understand that different RISCs >are (duh!) different, I thought that the ALPHA had one of the simpler >instruction sets and yet I thought I saw a post earlier in this thread >stating that the ALPHA had a (relatively) large number of pipeline stages. > > Don't take the "simpler" nature of RISC too literally. It is really a misnomer. Just because the typical RISC instruction is simpler doesn't mean there isn't plenty of work involved. Here is a typical pipeline structure: 1. Instruction fetch 2. Instruction decode 3. Access data cache/fetch operands 4. Execute operation 5. Store results in register You could break this up much further if you like as Digital has done. The Alpha architecture was designed so that high clockspeed implementations would be possible. Here are several items which usually separate RISC and CISC in my opinion: 1) Instruction uniformity CISC architectures can have instructions of variable length. For instance, take the 68000. Some simple instructions which add two numbers are only 16 bits long, while branch instructions were 32 or 48 bits long. This makes pipelining and decoding more difficult. RISC architectures have a fixed instruction length. The uniform size of an instruction to be fetched makes pipelining easy. 2) Memory Access CISC architectures often had instruction which would access more than one memory operand in a given instruction, rather than just working with internal registers. They also have many different addressing modes to allow an assembly language programmer to have a lot of flexibility. RISC: Typically only access memory using simple Load or Store instructions. All processing is done on internal registers with data loaded with a load instruction. So, while a CISC instruction could load data, compute results, and store it all in one - the RISC would first execute a load instruction, then execute an arithemetic instruction, then execute a store. This is one reason why RISC code tends to take up more space than CISC code. When someone calls a Pentium-Pro "RISC-like", they are referring to various implementation-specific details which are similar to past RISC implementations. However, Pentium-Pro is not RISC. It still has the above items as part of its architecture. ** note ** the above is only speaking in general terms. There are many variations on architectures, but I believe these are the biggest differences. ___________________________________________________________ Steve Bakke University of Cincinnati Computer Engineering '96 The Heineken uncertainty principle: You can never be sure how many beers you had last night. _________________________________________________________