43
Copyright © 2008 All rights reserved 1 從從從從 ESL Alan P. Su Global Unichip Corp.

Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

Embed Size (px)

Citation preview

Page 1: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

Copyright © 2008 All rights reserved 1

從一串鞭炮到 ESLAlan P. Su

Global Unichip Corp.

Page 2: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

2Copyright © 2008 All rights reserved 2

Curriculum VitaeAlan P. Su received his bachelor degree in computer science from Chung-Yuan Christi

an University in 1986. After working as a system analyst with CMS (later EDS Taiwan and now HP), he went to the States and received M.S. degree from University of Missouri Rolla in 1994 and doctorate from University of California Riverside in 1998. Between 1998 and 2002 he worked for EEsof, Hewlett-Packard Company, later spun off to become Agilent, to develop a DSP Synthesis tool and other Electronic System Level (ESL) tools. In 2003 he returned to Taiwan and joined SoC Technology Center, ITRI to conduct several ESL projects in tool development, SoC designing and design methodologies. While remained as a consultant with ITRI, in April 2006 he joined SpringSoft, Inc. to lead the development of ESL tools. In August 2008 he joined Global Unichip Corp. to develop ESL development boards as platforms to provide ESL design services.

Dr. Su involves in various ESL standardization efforts. He is a member of OSCI Transaction Level Modeling (TLM) Working Group, Synthesis Working Group, Configuration, Control and Inspection Working Group, Language Working Group and OCP-IP Debug Working Group. He is also the Chair of Taiwan SystemC Users Group.

Dr. Su's research interest includes distributed and parallel computing, leakage current minimization, 3D IC and ESL verification, synthesis, debug, testing and design methodologies.

Page 3: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

3Copyright © 2008 All rights reserved 3

一串鞭炮Alan P. Su received his bachelor degree

in computer science from Chung-Yuan Christian University in 1986.

Page 4: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

4Copyright © 2008 All rights reserved 4

兩台機器After working as a system analyst with

CMS (later EDS Taiwan and now HP),…

Page 5: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

5Copyright © 2008 All rights reserved 5

三個專題…he went to the States and received

M.S. degree from University of Missouri Rolla in 1994…

Page 6: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

6Copyright © 2008 All rights reserved 6

Parallel Computing Using a parallel computer to speed

up the computation. Parallel computer: multiple

processing elements interconnected in a specific architecture and controlled by a general purpose processor.

Architecture examples: hyper cube, mesh, ring, pyramid, etc.

Page 7: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

7Copyright © 2008 All rights reserved 7

Example Parallel Architectures

22 23 2421

Hyper Cube

Mesh + Ring

Ring

For each application, e.g. sorting, they all have specific and different ways to implement. The implementation takes advantage of the architecture to speed up the application.

Page 8: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

8Copyright © 2008 All rights reserved 8

Distributed Computing

Deploy an application on inter-connected computers to tolerate fault thus increase the service quality.

Internet is an implementation of such concept.

Lots of distributed computing research focus on software engineering, including formal proving.

Page 9: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

9Copyright © 2008 All rights reserved 9

Grid Computing

It is distributed computing in the bone.

However many researchers today use grid to compute a big problem in parallel.

Grid blurs the line between parallel and distributed computing. And the term “concurrent computing” maybe more appropriate.

Page 10: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

10Copyright © 2008 All rights reserved 10

SoC Multi-Core Platform

Currently it is implemented in the mindset of distributed computing without the intent of fault tolerance.

Heterogeneous cores and multi-threaded computing.

Resource tracing is the main issue in today’s verification and debug needs.

Page 11: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

11Copyright © 2008 All rights reserved 11

Dining Philosopher Problem Multi-Process Synchronization

Each philosopher think and eat

Must have two forks, or chopsticks, to eat

Deadlock occurs if • must pick right hand

fork first, and• when all philosophers

come to eat at the same time

Page 12: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

12Copyright © 2008 All rights reserved 12

Dining Philosopher Solutions Solution 1: Not all philosophers can

eat at the same time Solution 2: Number chopsticks from

small to large in order. A philosopher must take smaller number chopstick first.

Page 13: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

13Copyright © 2008 All rights reserved 13

Cheating Husbands Puzzle*

Mamajorca, Atlantis, a country ruled by women. Only after proven as a perfect logician a woman could marr

y. The queen, Henrietta I, gathered all married women in the

town square one day and announced that: There are one or more cheating husbands. You know all other cheating husbands but your own. No discussions allowed. On the day you can determine your husband is cheating on y

ou, shoot him at midnight. 39 silent nights went by. On 40th night, shots were heard. How many shots? Or how many cheating husbands?

* Y. Moses, D. Dolev and J.Y. Halpern, “Cheating Husbands and Other Stories: A Case Study of Knowledge, Action, and Communication". Distributed Computing (1986) 1: 167–176.

Page 14: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

14Copyright © 2008 All rights reserved 14

40 Cheating Husbands Were Killed! Proved by induction:

1 cheating husband: the cheated wife, who know no other cheating husbands, kill that SoB the first midnight.

Assume this is true for N cheating husbands that they were shot on Nth midnight.

N+1 cheating husbands: the first N nights the N+1 wives knew N cheating husband didn’t shoot. When heard no shots the first N nights they immediately knew their husbands were cheating and kill them on the N+1th midnight.

Page 15: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

15Copyright © 2008 All rights reserved 15

Henrietta II, The Disgraced Henrietta II installed a mail system so no town square

gathering was required. The mail system guaranteed that mails would reach receivers eventually. She sent out a first mail to announce this mail system, then sent the second letter, exactly the same as her mother’s announcement.

No husbands were killed because of asynchronous communication system puzzled wives if other cheated wives received the message yet.

P.S. If there was only one cheating husband then it would work.

Page 16: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

16Copyright © 2008 All rights reserved 16

Queen Margaret Killed all cheating husbands in 3 days,

with a strongly synchronized communication

system, and allow shooting into the air.

Well, how so? Please read the paper.

Page 17: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

17Copyright © 2008 All rights reserved 17

Future Multi-Core SoC’s In the near future true parallel

computing will be employed by constructing a specialized parallel architecture. Like IBM Cell processor and Intel 80-core processor.

Speed-up factor analysis (against # of PE’s) and bottleneck analysis (to find why the speed-up is not as expected) are needed.

Page 18: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

18Copyright © 2008 All rights reserved 18

Electronic Design Automation…and doctorate from University of

California Riverside in 1998.

Page 19: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

19Copyright © 2008 All rights reserved 19

EDA

Software tools that help designers to design, implement and verify electronic devises.

Examples: Math Modeler, RF Simulation, architecture synthesis, behavior synthesis, logic synthesis, place & route, pSpice, etc.

Almost all the problems to be solved in EDA are either NP complete or NP hard.

Page 20: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

20Copyright © 2008 All rights reserved 20

在大學沒學好的東西

Gate

Source DrainVDD

Ground

Leakage Current

Page 21: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

21Copyright © 2008 All rights reserved 21

在大學沒學好的東西

Gate

Source DrainVDD

Ground

Leakage Current

VDD

Ground

Out

PMOS

NMOS

CMOS InverterIn

0 101

Page 22: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

22Copyright © 2008 All rights reserved 22

在大學沒學好的東西

Gate

Source DrainVDD

Ground

靜電防護 Electrostatic Discharge, ESD

Leakage Current

Page 23: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

23Copyright © 2008 All rights reserved 23

一個有游泳池的家Between 1998 and 2002 he worked for EEsof,

Hewlett-Packard Company, later spun off to become Agilent, to develop a DSP Synthesis tool and other Electronic System Level (ESL) tools.

Page 24: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

24Copyright © 2008 All rights reserved 24

System-on-a-Chip (SoC) Key word: System System an assemblage or combination of

things or parts forming a complex or unitary whole, Random House Webster’s College Dictionary, p.1329

Embedded System is a special-purpose system in which the computer (processor) is completely encapsulated by the device it controls, Wikipedia

Page 25: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

25Copyright © 2008 All rights reserved 25

A Single Core Design

ARM Core

AHB

USB

APB

(0x2054, 0x3F, Cycle 3552)

(0x3002054, 0x3F, Cycle 3550)

1314151617

Cycle 3540

DMAC

Page 26: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

26Copyright © 2008 All rights reserved 26

Message Passing via Shared Memory

ARM Core

AHB0 AHB1

WR (0x2054, 0x3F, Cycle 3552)

WR (0x3002054, 0x3F, Cycle 3550)

1314151617

Cycle 3540

DSP Core

RD (0x1002054, 0x3F, Cycle 3764)

ICM

3536373839

RD (0x2054, 0x3F, Cycle 3766)

Cycle 3760

RAM

Page 27: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

27Copyright © 2008 All rights reserved 27

A Multi-Core, Multi-Thread Application

ARM Core

AHB0 AHB1

DSP Core

ICM

RAMLCD

Display

APB

7374757677

3536373839

WR Tx [3270, 3380] RD Tx [3450, 3570]Interrupt

123

ISR

AP1 OS AP2

AP1 AP2 Display

USB

1314151617

Data Task Graph

Page 28: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

28Copyright © 2008 All rights reserved 28

事業第二春In 2003 he returned to Taiwan and

joined SoC Technology Center, ITRI to conduct several ESL projects in tool development, SoC designing and design methodologies.

Page 29: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

29Copyright © 2008 All rights reserved 29

IBM Cell Processor

Page 30: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

30Copyright © 2008 All rights reserved 30

Intel 80-Core

Page 31: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

31Copyright © 2008 All rights reserved 31

Media-Oriented Systems Transport - MOST

Page 32: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

32Copyright © 2008 All rights reserved 32

國標Dr. Su involves in various ESL standardization

efforts. He is a member of OSCI Transaction Level Modeling (TLM) Working Group, Synthesis Working Group, Configuration, Control & Inspection Working Group, Language Working Group and OCP-IP Debug Working Group. He is also the Chair of Taiwan SystemC Users Group.

Page 33: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

33Copyright © 2008 All rights reserved 33

SoC Design Challenges Moore’s Law and More than Moore Architecture design and exploration

Lower cost and power Faster and smaller

Verification Top-down reusable test benches Reliable early stage verification

Shorter & shorter turn-around 10M gates in 3 months or less

Page 34: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

34Copyright © 2008 All rights reserved 34

Electronic System Level

ESL is a solution to SoC design challenges.

Definition:

The use of appropriate abstractions in order to increase comprehension of a system, and to enhance the probability of successfully implementing its functionality in a cost effective manner, while meeting necessary constraints.

“ESL Design and Verification”, Bailey, Martin & Piziali, 2007

Page 35: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

35Copyright © 2008 All rights reserved 35

ESL Design Methodology

Macro ArchitectureExploration & Verification

Micro ArchitectureExploration & Verification

Page 36: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

36Copyright © 2008 All rights reserved 36

TLM 2.0

An Architecture Exploration Standard Untimed (UT): algorithm verification Loosely timed (LT): macro architecture

exploration Approximately timed (AT)

macro architecture verification micro architecture exploration

Cycle accurate (CA, not implemented by OSCI yet): micro architecture verification

Page 37: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

Copyright © 2008 All rights reserved 37

Adopting ESL

What you should be doing today

Page 38: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

38Copyright © 2008 All rights reserved 38

Need 1: ESL/FPGA Co-Emulation

Specification

Algorithm Analysis

Data Flow Analysis

ESL/FPGA Co-Emulation

Legacy RTL IP ReuseTLM 2.0 ModelingArchitecture DesignHybrid ESL VerificationPerformance AnalysisESL IP Verification

ESL Verification

HighLevel

Synthesis

RTLCoding

ESL/FPGARegression Test

Architecture Design

Page 39: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

39Copyright © 2008 All rights reserved 39

Need 2: ESL Verification

Conventional

RTL Design

Verilog TargetSimulation

C++ Developed& Verified

C++Test Vectors

VerilogTest Vectors

FPGA TargetEmulation

FPGA ReducedTest Vectors

ESL/FPGA

RTL Design

FPGA TargetEmulation

C++ Developed& Verified

C++Test Vectors

Verilog TargetSimulation

VerilogTest Vectors

SCV

TLM 2.0

Functional plusFormal Verification

Page 40: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

40Copyright © 2008 All rights reserved 40

Need 3: HLS with ESL Verification

High LevelSynthesis

FPGA TargetEmulation

C++ AlgorithmsC++

Test Harness

HDL TargetSimulation

HDLTest Vectors

Functional plusFormal Verification

Logic Bugs Identified

Debug

SCV

TLM 2.0

Fast Regression Test2 to 3 Orders Faster than Simulation

Page 41: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

41Copyright © 2008 All rights reserved 41

Issues to Focus Enhance Design Productivity and Quality

Close the gap between IC Density and Design Productivity

Design flow integration ESL Verification

Reuse algorithm level test suite High-level models for architectural verification at early

stage ESL/FPGA co-emulation, faster and easier

High Level Synthesis (HLS) Productivity Boost Architecture Exploration Control Intensive & communication interface

Multi-Core Design Identify the architecture with lowest cost and power Early stage software development support Multi-core HW/SW co-debug

Page 42: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

42Copyright © 2008 All rights reserved 42

命運真奇妙Dr. Su's research interest includes distributed

and parallel computing, leakage current minimization, and ESL verification, synthesis, debug, testing and design methodology.

Page 43: Copyright © 2008 All rights reserved 0 從一串鞭炮到 ESL Alan P. Su Global Unichip Corp

43Copyright © 2008 All rights reserved 43

Q & A