Top Banner
1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and WCU Distinguished Professor, Seoul National University Seoul National University, Seoul, Korea October 7, 2009
29

Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

Mar 19, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

1

Is Hardware Innovation Over?

ArvindComputer Science and Artificial Intelligence LaboratoryM.I.T.andWCU Distinguished Professor, Seoul National University

Seoul National University, Seoul, KoreaOctober 7, 2009

Page 2: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

2

The power of numbersLast year 950M cell phones were sold as opposed to 100M PCIndia & China are each selling > 7M new cell-phone connections per month

In developing countries cell phone is the only computer most people have In the developed world cell phone is the only computer people carry all the time

A shift in research is underway from PCs to cell phone, not very different from the shift from Mainframes and Minis to PCs in early eighties.

Page 3: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

3

The future would be dominated by the concerns of

cheap & powerful handheld devices

and

Powerful infrastructure needed to support services on these devices.

Page 4: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

4

Two chips, each with an ARM general-purpose processor (GPP) and a DSP (TI OMAP 2420)

Current Cellphone Architecture

Comms. Processing

Application Processing

WLAN RFWLAN RF WLAN RFWCDMA/GSM RF

Complex, H

igh

Perform

ance

but must

not d

issip

ate

more

than 3

watts

Many specialized complex blocks

Page 5: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

5

Real power saving implies specialized hardware

H.264 video decoder implementations in software vs. hardware

the power/energy savings could be 100 to 1000 fold

but our mind set is that hardware design is:

Difficult, riskyIncreases time-to-market

Inflexible, brittle, error prone, ...Difficult to deal with changing standards, …

New design flows and tools can change this mind set

Page 6: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

6

SoC & Multicore Convergence:more application specific blocks

On-chip memory banks

Structured on-chip networks

General-purpose

processors

Application-specific

processing units

Is consumer space different from enterprise space?

Page 7: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

7

Server MicroprocessorsAlso highly regular multicores with lots of specialized processing capabilities for

compression/decompressionencryption/decryptionintrusion detection and other security related solutionsDealing with spamSelf diagnosing errors and masking them…

One way to provide these functionalities is via on-chip FPGAs

Page 8: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

8

Server Multicore more memory, cores, reconfigurable logic…

Quality-of-Service (QoS) aware on-chip networks and resource management are essential for guaranteeing performance

Processor

FPGA

Page 9: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

9

Architectural Renaissance

Unprecedented opportunity to rethink parallel architecturesUnprecedented need to design low-power functional blocksUnprecedented opportunity to experiment offered by large FPGAs and high-level synthesis tools

Page 10: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

10

Bluespec: A new way of expressing behavior

A formal method of composing modules with parallel interfaces (ports)

Compiler manages muxing of ports and associated control

Powerful and zero-cost parameterization of modules

Encapsulation of C and Verilog codes using Bluespec wrappers Helps Transaction Level modeling

Smaller, simpler, clearer, more correct code

not just simulation, synthesis as well

Bluespec

Page 11: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

11

High-level Synthesis from Bluespec

VCD output

DebussyVisualization

C

Bluesim CycleAccurate

Bluespec SystemVerilog source

Verilog 95 RTL

Verilog sim

Bluespec Compiler

RTL synthesis

gates

FPGAPower estimation

tool

Power estimation

toolTapeout

Place & Route

Page 12: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

12

Bluespec enables Extreme IP reuse

Multiple instantiations of a block for different performance and application requirementsPackaging of IP so that the blocks can be assembled easily to build a large system (black box model)

Architectural exploration

“Intellectual Property”

An example

Page 13: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

13

IP Reuse via parameterized modulesExample OFDM based protocols

MAC

MAC

standard specific

potential reuse

Scrambler FECEncoder Interleaver Mapper

Pilot &Guard

InsertionIFFT CP

Insertion

De-Scrambler

FECDecoder

De-Interleaver

De-Mapper

ChannelEstimater

FFT Synchronizer

TXController

RXController S/P

D/A

A/D

Different algorithms

Different throughput requirements

Reusable algorithm with different parameter settings

WiFi: 64pt @ 0.25MHz

WiMAX: 256pt @ 0.03MHz

WUSB: 128pt 8MHz

85% reusable code between WiFi and WiMAXFrom WiFi to WiMAX in 4 weeks

WiFi:x7+x4+1

WiMAX:x15+x14+1

WUSB:x15+x14+1

Convolutional

Reed-Solomon

Turbo

[MEMOCODE 2007]

Page 14: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

14

802.11a Transmitter Design: Preliminary results

Design Lines of RelativeBlock Code (BSV) AreaController 49 0%Scrambler 40 0%Conv. Encoder 113 0%Interleaver 76 1%Mapper 112 11%IFFT 95 85%Cyc. Extender 23 3%

Complex arithmetic libraries constitute another 200 lines of code

[MEMOCODE 2006]

Page 15: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

FFT – fold to save area

in0

in1

in2

in63

in3

in4

Bfly4

Bfly4

Bfly4

x16

Bfly4

Bfly4

Bfly4

Bfly4

Bfly4

Bfly4

out0

out1

out2

out63

out3

out4

Perm

ute

Perm

ute

Perm

ute

Reuse the same circuit three times to reduce area

Page 16: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

16

802.11a Transmitter Synthesis results (Only the IFFT block is changing)

IFFT Design Area (mm2)

ThroughputLatency

(CLKs/sym)

Min. Freq Required

Pipelined 5.25 04 1.0 MHz

Combinational 4.91 04 1.0 MHz

Folded(16 Bfly-4s)

3.97 04 1.0 MHz

Super-Folded(8 Bfly-4s)

3.69 06 1.5 MHz

SF(4 Bfly-4s) 2.45 12 3.0 MHz

SF(2 Bfly-4s) 1.84 24 6.0 MHz

SF (1 Bfly4) 1.52 48 12 MHZ

TSMC .18 micron; numbers reported are before place and route.

The same source code

All these designs were done in less than 24 hours!

Page 17: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

17

Some cool projects Video decoder – H.264

AirBlue – A new platform to experiment with cross-layer wireless protocols

IBM PowerPC Prototype and Cycle-accurate performance models

Hardware software co-generation

Page 18: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

18

H.264 Video DecoderChun-Chieh Lin, K Elliott Fleming [MEMOCODE 2008]

May be implemented in hardware or software depending upon ...

NALunwrap

Parse+

CAVLC

Inverse Quant

Transformation

DeblockFilter

IntraPrediction

InterPrediction

RefFrames

Com

pre

ssed

Bits

Fram

es

Different requirements for different environments- QVGA 320x240p (30 fps)- DVD 720x480p- HD DVD 1280x720p (60-75 fps)

Page 19: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

19

H.264 in BluespecInitial Design: Base profile

Eight man-months8K lines of Bluespec

in contrast to 80K lines of C standardDecoded 720p@32FPS

Major architectural explorations over 3 months to meet different performance or cost criteria

High performance designs (4.2 mm sq in 180nm)720p@75FPS, 1080p@65FPS,

Low cost designs QCIF@15FPS (2.2mm sq), 720p@30FPS (2.4mm sq)

Current focus is on high performance FPGA implementations

Page 20: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

20

AirBlue: A platform for Cross-Layer Wireless Protocol development

Cross-layer protocols are the hottest area of research in wireless

Jointly optimizing PHY, MAC, network layers

Realistic experimentations are difficult PHY (baseband) layer requires a lot of computation: traditionally in hardwareMAC typically done in firmwareHigher layers in software

20

Collaboration with Professor Hari Balakrishnan

Page 21: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

21

AirBlue Platform: Alfred Ng, Elliott Fleming, Mythli Vutukuku, Ramki Gummadi,

Flexibleslow

Inflexiblefast

Processor

Radio

AD/DAFPGA/ASIC

MAC Baseband Need short

latencies

AirBlue

Flexibility

Perf

orm

ance

GnuRadioSpectrumware, Vanu.com

ASICsRice WARP Sora

XG

DSPs

Current platforms do not offer both

Cross-layer wireless protocols require a platform that offers both flexibility/programmability and performance

Page 22: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

22

AirBlue

Several cross-layer experiments have already been conducted on full-speed 802.11a/g implementation

SoftPHY: Exposes signal quality to higher layersEnables new protocols: MIXIT, PPR, better rate-adaptation

Efficient allocation of OFDM channels Variable demands, heterogeneous SNRs

Fits in Nokia N95

phones

Each new protocol required less than 100 lines of code

Page 23: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

23

IBM: PowerPC Prototype K. Ekanadham, Jessica Tseng (IBM)Asif Khan, M. Vijayaraghavan (MIT)

Goal: Implement a multithreaded, multicore, in-order PowerPC on an FPGA platform and boot Linux on it in 12 months

Team: 2(IBM) + 2(MIT) + Linux and FPGA help

The team accomplished the goal (Nov 2008)- Bluespec PowerPC boots Linux on FPGAs in 10min;- 100M instructions to reach “Hello World”; - 15K lines of Bluespec generated 90K lines of Verilog

IBM synthesized the generated Verilog using their tools in 40nm library

– ran at 500MHz on the first try!

Page 24: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

Phase II: IBM/MIT CollaborationMarch 2009 –

Goal: Produce a cycle-accurate and parameterized model of multithreaded, multicore PowerPC to run on FPGAs

Architecture models in software can be flexible and have high fidelity but tend to be slow Can we gain 1000X speedup by running the models on FPGAs ?

Use cheaper and widely available FPGA boardsXilix 110 as opposed to 330

Target open source distribution by summer 2010

24

Lots of technical challengesCurrently trying to boot linux

Page 25: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

Could we have done these projects in C, C++, SystemC?

25

Page 26: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

26

26

Hardware synthesis from C does not work very well:Reed Solomon Results

Bluespec C-synthesis Xilinx IP

Equivalent Gate Count

267,741 596,730 297,409

Frequency (MHz) 108.5 91.2 145.3

Steady State(Cycles/Block)

276 2073 660

Data rate (Mbps) 701.3 89.7 392.8

Lower is better

Higher is better

WiMAX requirement is to support athroughput of 134Mbps

For thesame area!

Abhinav Agarwal, Alfred Ng

Page 27: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

27

Hardware innovation is far from over

Ubiquitous mobile devices and demand for new services are ushering in a new era of computingLarge FPGAs are offering an unprecedented opportunity to experiment High-level synthesis tools like Bluespec are making architecture exploration and SoC development much easier

High quality synthesisModules with formal interfaces (not just wires)Parameterized modules (higher-order functions)Strong type systemAbility to interact with modules written in C, Verilog, …

Thanks!

Page 28: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

28

Page 29: Is Hardware Innovation Over? - Seoul National University · 2018-08-17 · 1 Is Hardware Innovation Over? Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. and

29

Exploiting Multiple Clock Domains in Bluespec for Hw/Sw cogeneration

Rule1Rule1

State

Rule1Rule1Rule ARule A Rule1Rule1

State

Rule1Rule1Rule BRule BClock

CrossingModule

Slow Clock Domain Fast Clock DomainSoftware Hardware

MCD allows us to run parts of the design at different speedsEach GAA/Method is associated with a clockSpecial Module to Cross ClocksThe idea works even if some of the domains are implemented in software

HW/SW Interface

Nirav Dave, Myron King