40
Graphical System Design Jacob Kornerup, Ph.D. LabVIEW R&D National Instruments

Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

  • Upload
    buicong

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Graphical System Design

Jacob Kornerup, Ph.D.

LabVIEW R&D

National Instruments

Page 2: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Ph.D. UT Computer Sciences 1997

Parallel, functional programming

• Assistant Professor 1997-99 ECE Dept. SMU, Dallas

• Principal SW Architect, National Instruments, 1999 - Real-time systems

Programming with time

Real-time networking

Models of Computation

High Level Synthesis for FPGAs

Research projects with Drs. Gerstlauer and Evans

About me

Page 3: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Embedded system design

• Platform based design

• Models of Computation

• Real-time streaming applications

• System design tools

Agenda for Today

Page 4: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

National Instruments

• Revenue: $1.14 Billion in 2013

• Global Operations: Approximately

6,870 employees; operations in more

than 40 countries

• Broad customer base: More than

35,000 companies served annually

• Diversity: No industry >15% of revenue

• Culture: Ranked among top 25

companies to work for worldwide by the

Great Places to Work Institute

‘12 ’86 ’88 ‘90 ’92 ’94 96 ’98 ’00 ’02 ’04 ’06 ’08 ’10 ‘12

Page 5: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

5 ni.com

LEGO®

MINDSTORMS ®

NXT EV3

From K…

We Enable Graphical System Design

… to Rocket Science

Page 6: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

PXI PC/Mac/Linux FlexRIO

Data Flow C Code Textual Math Simulation Statechart

CompactRIO Custom

High-Level Design Models

Graphical System Design Platform

Page 7: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Tough Real-Time Challenges

Large Telescope

Mirror Control

Tokomak

Plasma Control Wind Turbine Sound Source

Characterization

CERN Hadron Collider Early Cancer Detection Structural Health Monitoring

Page 8: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

M1 Mirror

42 meters

European Southern Observatory

Extremely Large Telescope

Page 9: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

6,000 SENSORS

984 MIRRORS

3,000 ACTUATORS

3k x 6k MATRIX

1 MILLISECOND

ESO ELT M1 Mirror Control

Page 10: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

200 GFLOPs (Global Control)

1 TOPs (Local Control cRIO)

2 TFLOPs

Page 11: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Optical Coherence Tomography Research

K. Ohbayashi

Kitasato University,

Center for Fundamental Sciences

Early Cancer Detection with LabVIEW & PXI

2D

FFT

~ 1.5 M FFTs / sec for Real-Time Performance

Page 12: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Business Trends

Page 13: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

The Long Tail

•High Volume, Low Mix

•Large Development Teams

•Highly Customized Hardware

•Low Volume, High Mix

•Small Development Teams

•Custom Design on COTS

•Domain Experts

[ “The Long Tail,” Chris Anderson Wired, 2004 ]

Sale

s

Vo

lum

e

Varie

ty

Page 14: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Design discontinuities in EDA tools

[1] Kurt Keutzer, UC Berkeley EECS 244 class

Page 15: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• New Methodology maps from the higher level

abstraction down to the reliable foundation

A design-entry approach that offers 10X

productivity improvement.

A functional verification approach that offers 10-

100X speed-up in verification

An implementation approach that is predictable

and reliable

Addressing Design Discontinuity

[1] Matthias Gries, Kurt Keutzer. "Building ASIPs: The Mescal Methodology“, Springer, 2005, 0-387-26057-9

Page 16: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

“To do for embedded what the PC did for the desktop.”

Graphical System Design

Complex instrumentation

RF Digital Distributed

Industrial control RT/FPGA systems

Electronic devices C code generation

Real-time measurements Embedded monitoring Hardware in the loop

Virtual Instrumentation Embedded Systems

National Instruments Vision Evolved

Page 17: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

18 ni.com

The Next 30 Years: Expanding LabVIEW into System Design

Research/Modeling Design/Simulation Verification/Validation Manufacturing

Product Verification Design Verification

Page 18: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Alberto Sangiovanni-Vincentelli, UC Berkeley

“The design of embedded systems is becoming more difficult as design

complexity increases, time-to-market pressures continue, and development teams with diverse backgrounds are assembled. The platform-based design methodology (PBD) is a technique to combat these challenges.” [5]

“Given the cost and risks associated to developing hardware solutions, an increasing number of companies is selecting hardware platforms that can be customized by reconfiguration and/or by software programmability. In particular, software is taking the lion’s share of the implementation budgets and cost. In cell phones, more than 1 million lines of code is standard today, while in automobiles the estimated number of lines by 2010 is in the order of hundreds of millions.” [6]

Trends in Embedded Software

[5] A. Davare, et al. “A Next-Generation Design Framework for Platform-Based Design”

[6] Alberto Sangiovanni-Vincentelli, "Quo Vadis, SLD? Reasoning About the Trends and Challenges of System Level

Design", Proceedings of the IEEE, Vol. 95, No. 3, March 2007.

Page 19: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Constructs for application domain experts

• Structured implementation with the right levels of

abstraction

• Separation of concerns between functionality and

architecture

• Evolve designs on hardware “generations”

• Design flow that supports analysis, simulation,

verification and synthesis

Platform Based Design & Models of Computation

[1] E.A. Lee, “Embedded Software”, Revised from UCB ERL Memorandum M01/26, November 1, 2001,

[2] E.A. Lee and S. Neuendorffer, “Concurrent Models of Computation for Embedded Software”, Memorandum No. UCB/ERL

M04/26, July 22, 2004

[3] Alberto Sangiovanni-Vincentelli, "Quo Vadis, SLD? Reasoning About the Trends and Challenges of System Level Design",

Proceedings of the IEEE, Vol. 95, No. 3, March 2007.

Page 20: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

The Y-Chart System Design Methodology

Performance Evaluation

Analysis & Mapping

Platform Architecture Application Logic

1. Kienhuis, Deprettere, van der Wolf, and

Vissers., “A Methodology to Design

Programmable Embedded Systems - The Y-

Chart Approach. Embedded Processor Design

Challenges: Systems, Architectures, Modeling,

and Simulation” - SAMOS, p.18-37, Jan. 2002.

2. Keutzer, Newton, Rabaey, Sangiovanni-

Vincentelli, “System-level Design:

Orthogonalization of Concerns and Platform-

based Design,” IEEE Transactions on

Computer-Aided Design of Integrated Circuits

and Systems, 19(12): p. 1523-1543, Dec. 2000.

Page 21: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Distributed

• Heterogeneous computing platforms

Real-time OS, FPGA, Desktop OS, GPU

• Communication schemes

• Real-time

• IO

• Timing

Platform Dimensions

Page 22: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Algorithm development

• IO characterization

Timing characteristics

• Real-time constraints

• Integrating Models of Computation

• State management

Application Dimensions

Page 23: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Edward Lee, UC Berkeley

“The principal role of embedded software is interaction with the physical world. Consequently, the

designer of that software should be the person who best understands that physical world.”

[domain expert] [1]

“The engineers that write embedded software are rarely computer scientists. They are experts in

the application domain with a good understanding of the target architectures they work with.” [1]

“Design of embedded software will require models of computation that support concurrency.“ [1]

“In embedded software, concurrency and time are essential aspects of a design.” [2]

Trends in Embedded Software

[1] E.A. Lee, “Embedded Software”, Revised from UCB ERL Memorandum M01/26, November 1, 2001,

(http://ptolemy.eecs.berkeley.edu/publications/papers/02/embsoft/embsoftwre.pdf)

[2] E.A. Lee and S. Neuendorffer, “Concurrent Models of Computation for Embedded Software”, Memorandum No.

UCB/ERL M04/26, July 22, 2004 (http://mesl.ucsd.edu/gupta/cse237b/Readings/concurrentmodels.pdf)

Page 24: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Distributed Computing

Multiple

Programming

Models

LabVIEW Today

Page 25: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Idea Model of

Computation Implementation

Models of Computation

Multiply /

Accumulate

Page 26: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

27 ni.com

Design and Simulation yHIHHx

*1

2* ˆˆˆˆ

MMSE Equalizer (matrix inversion) problem:

Textual Math

I

H

σ

H

σ

MGS QRDGet

Q1 and Q2

Scale Q2

Q

σ

Q2

MatrixVector

Multiply

Q1*

Q2/σ

Matrix Vector

Multiply

sestQ1*y

y

Computational Intensive Block

B

Conceptual Block Diagram

N0I0,a0

r -1

0 ,q0

O0

O0

O0

I1,a1

I2,a2

I3,a3

N1r

-11 ,q1

O1

O1

N2r

-12 ,q2

O2 N3r

-13 ,q3

Systolic Array

Parallel Implementation

LabVIEW FPGA

Page 27: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Heterogeneous Architectures

“You need a high-level language to bring FPGA to

the masses, people who are not essentially hardware

programmers. We think LabVIEW is a very good tool

that enables the domain experts to program

FPGAs…”

– Ivo Bolsens, CTO, Xilinx

Page 28: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Current project at National Instruments

Exploration of concepts and directions

• 2 arcs of exploration

System Design Tool

DSP algorithm development

LabVIEW-Based System Design Tools

Page 29: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Focus on DSP streaming applications running on

FPGAs

• Explore the right Models of Computation (MoCs)

• Provide analysis and optimization

Throughput, latency, area

• Allow simulation and test bed creation

• Generate performing VHDL code

• Provide debugging capabilities

Looking Closer at DSP Design

Page 30: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

MoCs for Streaming Applications

31

Expressive Analyzable

Process Networks

Kahn Process Networks

Boolean Dataflow

Static Dataflow

Cyclo-static Dataflow

Homogeneous Dataflow

Integer Dataflow

Heterochronous Dataflow

No Yes Deadlock and boundedness decidable?

No Yes Static scheduling?

Deter- ministic?

No Yes

Synchronous? No Yes

Key trade-off: Analyzability vs. Expressibility

Variable Rate Dataflow

Page 31: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Dataflow Execution

• LabVIEW Dataflow

t

Page 32: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Multirate Execution

• LabVIEW Execution

• Asynchronous Execution

t

Page 33: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

ni.com

HDL/RTL LabVIEW Today

Platforms for FPGA-based System Design

LabVIEW DSP Design Module

Early Access Program

Page 34: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

Making Applications Faster to Design

DSP Diagram

Karplus-Strong Plucked String Algorithm

Page 35: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

ni.com

High-Speed Streaming is Complex Today

• Challenges

LabVIEW G model

o Original specification from algorithm designer

o Not feasible for highly efficient implementation on FPGA targets

Implementation challenges

• Floating to fixed point conversion

• Array data to point-by-point data conversion

• Explicit concurrency representation

• FPGA target constraints

• Integration with internal and third-party IP

Page 36: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

ni.com

Domain Expert Expectations for High-Speed Streaming

• High-level DSP representation that matches algorithm theory • Algorithms written independently of hardware target

• Deal in domain terms of token rate, throughput, and latency

• Explore high-level design tradeoffs without diving into implementation details

• Tune performance with high-level constraints

• Access the details if needed

Parameterized Synchronous Dataflow

Page 37: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

ni.com

OFDM Transmitter 20 MHz LTE Transmission Bandwidth

Pilot & Data Interleaving

Zero Padding

IFFT

• Rapidly prototype PHY layer baseband DSP

• Co-design PHY layer algorithms with higher MAC layer protocols

• Seamless integration with wide array of RF hardware

Page 38: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

DSP Design Module Value Enable an algorithm designer to specify an intuitive diagram

that generates real-time DSP implementations on FPGAs

Page 39: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

40 ni.com

RF/Communications PHY FPGA Software

LabVIEW FPGA

LabVIEW IP 3rd Party IP

RIO Hardware

LabVIEW FPGA IP Builder

LabVIEW DSP Diagram Module

Graphical System Design Platform

Page 40: Graphical System Design - University of Texas at Austinusers.ece.utexas.edu/~gerstl/ee382v_s14/notes/UT_ECE_GuestLecture... · Design", Proceedings of the IEEE, Vol. 95, ... MMSE

• Complexity of system design

• New productivity tools

• System design

Design distributed systems

• DSP Design

Design DSP algorithms

Summary