32
Configurable Embedded Systems: Using Programmable Logic to Compress Embedded System Design Cycles Steven Knapp (sknapp) Arye Ziklik (arye) Triscend Corporation www.triscend.com Class 330 © Copyright 1998, Triscend Corporation. All rights reserved.

Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Configurable Embedded Systems:Using Programmable Logic to Compress

Embedded System Design Cycles

Steven Knapp (sknapp)Arye Ziklik (arye)

Triscend Corporationwww.triscend.com

Class 330

© Copyright 1998, Triscend Corporation. All rights reserved.

Page 2: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Agenda

• Forces Shaping Embedded Design• Types of Design Solutions• Programmable Technologies• Technical Challenges

Page 3: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Key Forces Shaping Embedded Systems

System Cost

Pressure

Time-to-Market

Pressure

EmbeddedSystem Design

Differentiation

Performance

Page 4: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Why 'Configurable'?• Time-to-Market

– Fast iterations– Fast in-system, real-time debugging– Fast component availability

• Adaptability– During design and debug– In the field– In the application

• Performance– Match the architecture to the problem– Fast response to real-time events– Parallel operations

• Increased Differentiation

Page 5: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Types of Design Solutions

• Stand-Alone Processor• Processor Derivative• Processor + ASIC• Processor + Programmable Logic• Custom Processor in Programmable Logic• Custom Processor in ASIC• Configurable Processor• System on a Chip

Page 6: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Embedded System Solutions

Fast Time-to-Market

HardwareCustomization Custom Logic Configurable Logic

(off the shelf)

Instruction Set System on a chipProcessor + ASIC

“Roll your own” in FPGAConfigurable processor(on-chip accelerator)

Peripheral Set,System

Architecture

System on a chipProcessor + ASIC

Processor + FPGAConfigurable processor

Configurable processorI/O, Interface,

Decoding Processor + ASICProcessor + CPLD/FPGA

None - Stand-alone processor orderivative

Low

High

HighestCustomization

Page 7: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

History of Configurable Technologies

2000

Incr

easi

ng F

unct

iona

lity,

Den

sity

, and

Per

form

ance

1980

MCU TTL

TTL

Periph-eral

PAL

Periph-eral

EPROM

RAM

TTL

Discrete Solutions

"Systemon a

Chip"

1990Year

MCUDerivative

Periph-eral

CPLD/FPGA

RAM

EPROM/FLASH

MCU Derivatives andProgrammable Logic

MCUDerivative ASIC

"Roll-Your-Own" MCU in

FPGA

EPR

OM

ConfigurableProcessor EP

RO

M/

FLA

SH

ConfigurableProcessors

Page 8: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Today's Configurable Technologies• Complex Programmable Logic Devices

(CPLD)• Field Programmable Gate Arrays (FPGA)• Hybrid Devices

– Processor interface– Programmable logic

• Configurable Processors – Integrated processor– Programmable logic– Dedicated on-chip bus– On-chip memory

Page 9: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Func

tion

Blo

ck

What is a CPLD?

Switc

h M

atrix

M.C.M.C.M.C.M.C.M.C.M.C.M.C.M.C.

Func

tion

Blo

ck

Func

tion

Blo

ckFu

nctio

nB

lock

D Q

Switc

h M

atrix

Pin Feedback

Macrocell Feedback

PAD

M.C.

A function block issimilar to a PAL or PLD

Page 10: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

CPLD Vendors

Company CPLDs PLDs/PALsAltera MAX ClassicXilinx XC9500 -Vantis MACH PALLattice pLSI, GALs GALCypress Flash 370, PAL PALAtmel ATF, ATV ATFTI - PALPhilips CoolRunner -ICT - PEEL

See also: www.optimagic.com/summary.html

Page 11: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

What is an FPGA?

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

Logi

cB

lock

PIO PIO PIO PIO PIO PIO PIO PIOPIO

PIO PIO PIO PIO PIO PIO PIO PIOPIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO

PIO LUT/

RAM D QEN

CLR

CarryLogicCell

L.C.

L.C.

Page 12: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

FPGA Vendors

Process TechnologyArchitecture Static Memory Anti-Fuse Flash

Coarse-grained

Altera (FLEX)Xilinx (Spartan, 4KX, Virtex)Lucent (ORCA)Atmel (AT40K)Vantis (VF1)DynaChip

QuickLogic (pASIC)

Fine-grained Atmel (AT6000) Actel (ACT, MX, SX) Gatefield

See also: www.optimagic.com/summary.html

Page 13: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Comparing CPLDs and FPGAsCPLDs FPGAs

Key AttributesFast pin-to-pin delayPredictable timingWide fan-inEasy to use

Very high densityLots of I/Os and flip-flopsGenerally lower powerAdvanced features (RAM)

TypicalApplications

Bus interfacesComplex state machinesFast memory interfacesWide decodersPAL-device integration

Logic consolidationBoard integrationReplace obsolete devicesSimple state machinesComplex controllers

Design Timing Usually fixed, PAL-likeFast pin-to-pin delays

Application dependentHigh internal performance

ProcessTechnology

EPROM (OTP)EEPROM (some ISP)FLASH (some ISP)

SRAM (ISP)Anti-fuse (OTP)EEPROM (ISP)

PowerConsumption

0.5-2.0W static(some "zero power")0.5-4.0W dynamic

Very low staticDynamic consumption isapplication dependent,0.1-2W typical

See also: www.optimagic.com/faq.html

Page 14: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Programmable Logic Market Data(Reference)

Revenues(millions)

MarketShareRanking Vendor

1997 1996

'96-'97Change 1997 1996

1 Altera $ 631 $ 497 27% 31% 27%2 Xilinx $ 574 $ 509 13% 28% 27%3 Vantis $ 243 $ 248 -2% 12% 13%4 Lattice $ 237 $ 220 8% 11% 12%5 Actel $ 156 $ 150 4% 8% 8%6 Lucent $ 97 $ 91 7% 5% 5%7 Cypress $ 52 $ 68 -24% 3% 4%8 Atmel $ 31 $ 27 15% 1% 1%9 QuickLogic $ 29 $ 25 16% 1% 1%10 TI $ 18 $ 23 -22% 1% 1%

TOTAL $ 2,068 $ 1,858 11%

See also: www.optimagic.com/market.html

Source:Electronic Buyer’s News, 30-MAR-98The Programmable Logic Jump Station

Page 15: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Hybrid Devices

• WSI Programmable System Device (PSD)– 8- or 16-bit MCU interface– CPLD-style macrocells– on-chip memory

• Lucent ORCA 3 and 3+ FPGAs– Motorola/IBM PowerPC interface– Limited Intel 960 interface– Limited connectivity to FPGA array

Page 16: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

What Is a Configurable Processor?

• Industry-standard processor

• Dedicated bus• Programmable

Logic– Soft peripherals– User-defined

functions– Hardware

acceleration• On-Chip Memory

DedicatedProcessor RAM

DedicatedPeripherals

HardwareBreakpoint

Syst

em B

us

ProgrammableLogic

Prog

ram

mab

le I/

O

Programmable I/O

Prog

ram

mab

le I/

O

Programmable I/OProgrammable I/O

Softperipherals

Userlogic

Page 17: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

InitializationBoot ROM

Triscend E5 Configurable Processor

ConfigurableSystem Logic

(CSL)Matrix

PIOPIOPIOPIOPIO

PIO

8032"Turbo"Micro-

controller

PowerControl

Clock andCrystal

OscillatorControl

Power-OnReset

MemoryInterface

Unit

BusArbiter

Byte-wideSystem

RAM

JTAGInterface

HardwareBreakpoint

Unit

AddressMappers Add

ress

Bus

Dat

a B

us

Configurable SystemInterconnect (CSI) bus

Two-channel

DMAController

SelectorSelector

Selector

CSI Socket

Page 18: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Case Study: Our Own Derivative

INT0

ReadSwitch CounterCtrl

Display_B Display_A

SevenSegment

7 7

7seg 7seg

4 4

DebugCounter

24CaptureLowCaptureMidCaptureHi

24BitCntrRSTENA

TC

CounterClock

8032Interrupt

Controller

INT1

CaptureStrobe

Page 19: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Case Study: Technical Challenges

• Communication between the processor and programmable logic functions

• Maintaining a standard development flow• Debugging a system with both processor

and programmable logic

Page 20: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Communication between the Processor and Programmable Logic

• Routing data and address bus• Decoding/controlling bus transactions• Register intimacy• Debugging

Page 21: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Proc

esso

rRouting Bus Signals: FPGA Example

• I/Os between devices– Many required, even for basic

8-bit interface)– Adds delay to critical path– Extra power consumption and

EMI in two-chip solution

• Distributing address/data on-chip– Uses programmable

interconnect– Adds delay to critical path– Variable delays in some

architectures– Some devices provide

bidirectional bussing

DATA

ADDR

CONTROL

Write Decode Read Decode

Page 22: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

?

Another Approach: CSI Bus Socket(Configurable System Interconnect)

• Distributes address and data to CSL matrix– No additional I/O

required– Dedicated address

decoding– Predictable,

synchronous timing– Forward compatible with

future configurable processors

– Wait-state control– Contention-free bussing

Side-band Signals

CSI Socket Interface

Data Write

Data Read

Address

Sele

ctor

s

Bus Clock

Wait-StateControl

Con

figur

able

Sys

tem

Inte

rcon

nect

(CSI

) Bus

Con

figur

able

Sys

tem

Log

ic

(CSL

) Mat

rix

8032"Turbo"

Microcontroller

BreakpointControlHardware

Breakpoint Unit

DMA Request/Acknowledge

2-ChannelDMA Controller

Page 23: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Decoding Bus TransactionsFPGA Style

LUT

LUT

LUT

LUT

LUT

LUT

LUTA15A14A13

A0

READ/WRITE-

RDSEL

WRSEL

• Decode delay is fan-out and routing dependent

Page 24: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Decoding Bus Transactions

RDSEL

WRSEL

REA

D/

WR

ITE-

A0 A15

A14

A13

CPLD/PSD Style

• Decode delay is constant

Page 25: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Decoding Bus Transactions

Match0

Match1

An A0A1A2

CSI Bus Address

RDSEL

WRSEL

READ

WRITE

BCLK

Bus Clock

RdSel

DATAData Read[7:0]

CSI Selector Style

• Decode delay is constant(less than 5 ns after clock)

• Fast address decoding– Any address range– Access type

• Code• Data• Special Function

Register (SFR)– Three modes

• Selector• Chip Select• DMA Control Register

– Up to 200 selectors in a single device

Page 26: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Connecting the Two Development Worlds

• Design and “soft” module libraries

• Passing register addresses to compiler/assembler

• Vendor place and route software

• Device programming support

• System-wide in-system debugging support

• Compiler/assembler support

• Function libraries• Instruction-set

simulator• System-wide in-

system debugging support

Hardware Development Software Development

Page 27: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Preserving Existing Tool Flow

Configurable Processor Tools MCU Development Tools

Designer’s standard tool flow

System Configuration

Soft ModuleLibrary

1Program

Development

SourceCodeLibrary

2

ProgramDebug

3System Testand Debug

4

DeviceProgramming

5

HeaderFile

ObjectFile

Page 28: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Case Study Design: FastChip Software“Soft” Module

Library

DedicatedResources

“Soft” peripherals dragged intoCSL matrix

Resources UsedIndicators

Page 29: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Real-Time, In-System Debugging• Difficult in most ASIC or system-on-a-chip

designs– Must rely on simulation before completing design

• Most debuggers only support the processor– Monitor bus activity– Monitor processor registers– Break on event and single-step

• Additional debugging desired for programmable logic functions– Monitor the state of logic and flip-flops in “soft”

peripherals– Monitor or force a breakpoint from programmable

logic

Page 30: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Summary

• Configurable embedded systems offer potential benefits:– Faster time to market– Higher performance compared to discrete solutions– Higher product differentiation

• Configurable processors are a new class of single-chip programmable devices designed for embedded systems applications– Industry-standard processor– Dedicated, high-performance internal bus– Programmable logic, connected to internal bus– On-chip, high-density memory

Page 31: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Looking for More?

• (Booth 5010)– Applications engineers available for questions– Software demonstrations throughout the day– CD-ROM with on-line tutorial and FastChip preview release– Visit www.triscend.com

• Roll Your Own RISC(Wednesday, 8:30, Class 402)

• Prototyping Embedded Microcontrollers in FPGAs(Wednesday, 4:00, Class 470)

• An Introduction to FPGA Design(Thursday, 8:30 and 10:30, Classes 509 and 529)

Page 32: Configurable Embedded Systems · Configurable embedded systems offer potential benefits: – Faster time to market – Higher performance compared to discrete solutions – Higher

Questions?