42
4/6/00 CISC, RISC, and DSP D.L. Jones 1 CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000

CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

Embed Size (px)

Citation preview

Page 1: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 1

CISC, RISC, and DSP Microprocessors

Douglas L. Jones

ECE 497

Spring 2000

Page 2: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 2

Outline

• Microprocessors circa 1984

• RISC vs. CISC

• Microprocessors circa 1999

• Perspective: why did things evolve so?

• The future of embedded microprocessors (?)

Page 3: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 3

Goals for this Lecture

• Understand key differences between various microprocessor types

• Understand why they’re that way

Page 4: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 4

General-Purpose Microprocessor circa 1984: Intel 8088

• ~100,000 transistors

• Clock speed: ~ 5 MHz

• Address space: 20 bits

• Bus width: 8 bits

• 100+ instructions

• 2-35 cycles per instruction

• Microcoded architecture

Page 5: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 5

• Many addressing modes

• Relatively inexpensive

Page 6: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 6

Apparent Trends

• Larger address space

• Higher clock speed

• More transistors

• More instructions

• More arithmetic capability

• More memory management support

Page 7: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 7

• Wider buses for high-performance processors

• High-end processors more expensive

Page 8: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 8

DSP Microprocessors circa 1984: TMS32010

• Clock speed: 20 MHz

• Word/bus width: 16 bits

• Address space: 8, 12 bits

• ~50,000 transistors

• ~ 35 instructions

• 4-cycle execute of most instructions

Page 9: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 9

• Harvard architecture: separate program and data memory, buses

• 16x16 hardware multiplier

• Double-length accumulator with saturation

• A few special DSP instructions

• Relatively expensive

Page 10: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 10

Apparent Trends

• Higher clock rates

• Fewer cycles/instruction

• Somewhat expanded address spaces

• More specialized DSP instructions

• Lower cost

Page 11: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 11

• Meanwhile, there was RISC ...

Page 12: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 12

RISC Processors circa 1984

• Academic research topic

• 12-16 instructions

• Single-cycle execute

• No microcode!

Page 13: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 13

Arguments Advanced for RISC

• Small, heavily optimized instruction set executable in single short cycle

• All instructions same size

• No microcode = faster execution

• Extra speed more than offsets increased code size, reduced functionality

• Better compiler target

Page 14: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 14

• (Simple enough for academic designs, class projects!)

Page 15: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 15

Arguments Advanced for CISC

• Fewer instructions per task

• Shorter programs

• Hardware implementation of complex instructions faster than software

• Extra addressing modes help compiler

Page 16: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 16

The RISC vs CISC Controversy

• Lots of argument

• Hundreds of papers

• Hottest topic in computer architecture

• In mid to late ‘80s, many RISC uPs introduced: MIPS, SPARC (Sun), MC88000, PowerPC, I960 (Intel), PA-RISC

• For a time, RISC looked tough to beat ...

Page 17: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 17

CISC Processors circa 1999

• Clock Speed: ~400 MHz

• Several million transistors

• 32-bit address space or more

• 32-bit external buses, 128-bit internally

• ~ 100 instructions

• Superscalar CPU

• Judiciously microcoded

Page 18: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 18

• On-chip cache

• Very complex memory hierarchy

• Single-cycle execute of most instructions!

• 32-bit floating-point ALU on board!

• Multimedia extensions

• Harvard architecture (internally)!

Page 19: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 19

• Very expensive (100s of dollars)

• 10s of Watts power consumption

Page 20: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 20

RISC Architectures circa 1999

• The same!!

Page 21: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 21

DSP Microprocessors circa 1999

• Clock speed: 100-200 MHz

• 16-bit (fixed point) or 32-bit (floating point) buses and word sizes

• 16-24 bit address space

• Some on-chip memory

• Single-cycle execution of most instructions

Page 22: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 22

• Harvard architecture

• Lots of special DSP instructions

• 50mW to 2 W power consumption

• Cheap!

Page 23: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 23

Questions

• If CISC and RISC have adopted all the distinguishing features of early DSP microprocessors and more, why didn’t they take over the DSP embedded market, too?

• Answer: because of the “and more”

Page 24: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 24

• Current high-volume DSP applications (e.g., hard disk drive controllers, cell phones) require low cost, low power

• DSP uPs stripped of all but the most essential features for DSP applications

• Most quoted numbers for DSP uPs not MIPS, but MIPS/$$, MIPS/mW

Page 25: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 25

• Market needs in DSP embedded systems are sufficiently different that no single architectural family can compete in both DSP and general-purpose uP market

Page 26: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 26

Questions

• Why did RISC become commercial in mid/late ‘80s?

• Why did CISC survive?• Why have RISC/CISC converged?

Page 27: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 27

Myth and Reality in RISC vs CISC

• Myth: CISC designs were inferior

• Reality: CISC designers made good design tradeoffs at each technology point

• Myth: Can’t achieve high performance, single-cycle execution with CISC

• Reality: They did it!

Page 28: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 28

• Myth: RISC is a better compiler target

• Reality: About the same

• Myth: Commercial RISC chips are really “RISC”

• Reality: All commercial RISC chips have a relatively large, complex instruction set

Page 29: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 29

The Real Answer (Opinion!)

• The main factor driving general-purpose microprocessor design has been the peculiar economics of semiconductor manufacturing

Page 30: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 30

Economics of IC Manufacturing

Transistor count Transistor count

$

$/ga

te

Cost per chip Cost per transistor

Page 31: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 31

Implications

• These curves STRONGLY favor designs near the knee of the curve!!!

• All microprocessors of a given generation have roughly the same number of transistors

• Key design tradeoff: what to do with X transistors?

Page 32: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 32

RISC vs. CISC: 500k transistors

• For a few years in the late ‘80s, designers had a choice:– CISC CPU and no on-chip cache

– RISC CPU and on-chip cache

• On-chip cache was probably a slightly better choice, giving RISC 2-3 years of modest advantage

Page 33: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 33

• It wasn’t about RISC at all, it was about the on-chip cache!

Page 34: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 34

RISC vs. CISC: 2M transistors

• Now possible to have both CISC and on-chip cache

• CISC recovers parity, maybe even advantage

• RISC chips become more CISC-like

Page 35: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 35

Even More Transistors ...

• Then more transistors became available than single CISC CPU and reasonable cache could use … what now?– Multi-processor chips?

– Superscalar?

– VLIW?

Page 36: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 36

Convergence: 5M transistors

• Superscalar won. But …– It’s really hard to pipeline and schedule

superscalar computations when instruction cycles, wordlengths differ, and when there are 100s of different instructions

– Compilers used only a small subset of instructions

– Nobody coded in assembly anymore

Page 37: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 37

• This pushed CISC designs to be more RISC-like

• Hence, convergence!

Page 38: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 38

What’s Next: 50M transistors

• Approaching limits of superscalability

• Economics of IC manufacturing say more transistors per microprocessor chip– VLIW?

– Symmetric multi-processor on a chip?

– Heterogeneous multi-processor on a chip?

• The latter is emerging (DSP+ARM, Pentium + MMX)

Page 39: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 39

Question

• Are there other embedded microprocessor types besides DSP waiting to emerge?

• AI has been tried and failed

• Video game uPs (“Emotion Engine”)

• Need application area with unique enough requirements that it’s not well served by existing families

Page 40: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 40

• Great opportunity for enterprising chip designer!

Page 41: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 41

Future of DSP Microprocessors

• DSP market and applications remain sufficiently unique to sustain an independent class of microprocessors

• Expect ever-lower-power devices, higher performance within power, cost constraints

• Fixed point will always be with us!

• As will floating point!

Page 42: CISC, RISC, and DSP Microprocessorsjones/RISCvCISCvDSP.pdf · CISC, RISC, and DSP Microprocessors Douglas L. Jones ECE 497 Spring 2000. 4/6/00 CISC, RISC, and DSP D.L. Jones 2 Outline

4/6/00 CISC, RISC, and DSP D.L. Jones 42

• Compilers may finally become useful for embedded DSP development, but user must remain informed, in control when needed

• Hybrid DSP/general purpose uP systems may become the norm