Top Banner
EE382N: Embedded Sys Dsgn/Modeling Lecture 1 (c) 2015 A. Gerstlauer 1 EE382N: Embedded System Design and Modeling Andreas Gerstlauer Electrical and Computer Engineering University of Texas at Austin [email protected] Lecture 1 – Introduction EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 2 Lecture 1: Outline Introduction Embedded systems System-level design Course information • Topics • Logistics • Projects Design methodology System-level design flow Models and methodologies
23

EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

Sep 03, 2018

Download

Documents

phamdat
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: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 1

EE382N:Embedded System Design and Modeling

Andreas GerstlauerElectrical and Computer Engineering

University of Texas at [email protected]

Lecture 1 – Introduction

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 2

Lecture 1: Outline

• Introduction• Embedded systems

• System-level design

• Course information• Topics

• Logistics

• Projects

• Design methodology• System-level design flow

• Models and methodologies

Page 2: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 2

• System-in-a-system• Application-specific

– Not general purpose– Known a priori

• Tightly constrained– Guaranteed, not best effort– Performance, power, cost, reliability, security, …

• Ubiquitous• Far bigger market than general-

purpose computing (PCs, servers)– 98% of all processors sold

[Turley02, embedded.com]

• Growing complexities• Application demands & technological advances• Increasingly networked and programmable Internet of Things (IoT)

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 3

Embedded Systems

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 4

Cyber-Physical Systems (CPS)

• Not transformative

• Output = F(Input) Procedural/batch processing

• But reactive

• Continuous interaction with environment Sense and act on the physical world

Concurrency and real time

TransformativeSystem

Input Output

ReactiveSystem

Inputs Outputs

Page 3: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 3

Embedded System Design

• Correctly implement a specific set of functions

• While satisfying constraints

• Performance, cost, energy, power, thermal, …

Specialization and Optimization

• Choice of system architecture and application mapping

Large design spaces, and growing

General-purpose computing seeing similar needs

• Power, thermal, … constraints

• Application/architecture specialization & optimization

The two worlds are merging…

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 5

Source: M. Jacome, UT Austin

Traditional Embedded System

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 6

• CPU-centric design

• Peripherals,Accelerators

• Cost vs.performance

ASIC/FPGA

Source: M. Jacome, UT Austin

Page 4: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 4

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 7

Source: T. Noll, RWTH Aachen, via R. Leupers, “From ASIP to MPSoC”, Computer Engineering Colloquium, TU Delft, 2006

Implementation Options

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 8

Multi-Processor System-on-Chip (MPSoC)

Frontside Bus

SystemMemory

Local Bus

Local RAM

Bridge

SharedRAM

DSP Bus

DSP RAM

MemoryController GPU

DSP

HardwareAccelerator

CPU

HardwareAccelerator

VideoFront End

Source: C. Haubelt, Univ. of Rostock

Page 5: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 5

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 9

Productivity Gaps

Capability of Technology2x/18 Months

Gates/ChipGates/Day

SoftwareProductivity2x/5 years

log

time

1981

1985

1989

1993

1997

2001

2005

2009

LoC SW/Chip

Average HW + SW Design Productivity

LoC/Day

Additional SW required for HW2x all 10 months

SystemDesign Gap

HW DesignGap

HW DesignProductivity1.6x/18 Months

Source: W. Ecker, W. Müller, R. Dömer, Hardware-dependent Software - Principles and Practice, Springer 2009.

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 10

Design Challenges

Applications

ProgrammingModel?

• Complexity

• High degree of parallelism

• High degree of design freedom

• Multiple optimization objectives& design constraints

– Cost, performance, power, …

– Reliability, safety

• Heterogeneity

• Of components– Processors, memories, busses

• Of design tasks– Architecture design

– Application mapping

Source: C. Haubelt, Univ. of Rostock

Page 6: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 6

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 11

Heterogeneity, Complexity

• Managing complexity and heterogeneity challenge• Mix of hardware design with software design• Mixes design styles within each of these categories• Mix of abstraction/detail/specificity

• Systematic specification, modeling and design techniques• Rigorous and unambiguous specification• Automated analysis & synthesis

Formal methods for analysis and synthesis are key• It requires reconciling

– Simplicity of modeling required by verification and synthesis– Complexity and heterogeneity of real world design

Key need Formal models to capture/express the various types of behavior at different abstraction levels, and how those diverse formal models interact and can be analyzed and synthesized.

Source: M. Jacome, UT Austin

(Engineering) Models vs. Reality

• “You can’t strike oil by drilling through a map” [Solomon’68]

• Yet, maps are incredibly useful

We can make definitive statements about models from which we can infer properties of system realizations [Kopetz]

Validity of inference depends on model fidelity

Always approximate

Assertions about (predicted) properties are always assertions about a model of the system

Never truly properties of the final implemented system

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 12

Source: E. Lee, CEDA Keynote, DAC’13.

Page 7: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 7

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 13

Reliability and Safety

• Embedded systems often are used in life critical situations, where reliability and safety are more important criteria than performance

• Today, embedded systems are designed using a somewhat ad hoc approach that is heavily based on earlier experience with similar products and on manual design

• Formal verification and automated synthesis are the surest ways to guarantee safety

• Both, formal verification and synthesis from high levels of abstraction have been demonstrated only for small, specialized languages with restricted semantics

Insufficient, given the complexity and heterogeneity found in typical embedded systems

Source: M. Jacome, UT Austin

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 14

Desirable Design Methodology

• Design should be based on the use of one or more formal models to describe the behavior of the system at a high level of abstraction• Such behavior should be captured on an unbiased way,

that is, before a decision on its decomposition into hardware and software components is taken

• The final implementation of the system should be generated as much as possible using automatic synthesis from this high level of abstraction• To ensure implementations that are “correct by

construction”• Validation (through simulation or verification) should be

done as much as possible at the higher levels of abstraction

Source: M. Jacome, UT Austin

© 2015 A. Gerstlauer

Page 8: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 8

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 15

System levelSystem level

Abstraction Levels

• Move to higher levels of abstraction [ITRS07, itrs.net]

System-level design

1E0

1E1

1E2

1E3

1E4

1E5

1E6

1E7

Number of componentsLevel

Gate

RTL

Processor

Transistor

Ab

stra

ctio

n

Acc

ura

cy

Source: R. Doemer, UC Irvine

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 16

System-Level Design

• From specification• Functionality, behavior

– Concurrency, order– Constraints

• To implementation• MPSoC architecture

– Spatial and temporal order– Components and connectivity

Design automation• Modeling • Synthesis• Verification

Proc

Proc

Proc

Proc

Proc

Requirements, constraints

Implementation (HW/SW synthesis)

Mapping & exploration

DCT

TX

ARM

M1Ctrl

I/O4

HW

DSP

MBUS

BUS1 (AHB) BUS2 (DSP)

Arb

iter

1

IP Bridge

DCTBus

I/O3I/O2I/O1

DMA

M1

Enc DecJpeg

Codebk

stripe

SI BO BI SO

DCT

MP3

Page 9: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 9

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 17

Bri

dg

e

CPU Mem

HW IP

Arb

ite

r

v1

C1

B1 B2

B3 B4

C2

CommunicationComputation &

System-LevelDesign

Software / HardwareSynthesis

Co

mp

ilati

on

Hig

h-L

evel Syn

thesis

Software Object Code

Hardware VHDL/Verilog

Functionality

System Architecture

Platform

UT ECE Courses

EE382N.23: Embedded System Design & Modeling

EE382N.23: Embedded System Design & Modeling

EE

382N

.4:

Ad

v. S

yste

m A

rch

itec

ture

EE

382N

.4:

Ad

v. S

yste

m A

rch

itec

ture

EE

382M.20: S

ystem-o

n-C

hip

Desig

nE

E382M

.20: System

-on

-Ch

ip D

esign

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 18

Lecture 1: Outline

Introduction Embedded systems

System-level design

• Course information• Topics

• Logistics

• Projects

• Design methodology• System-level design flow

• Models and methodologies

Page 10: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 10

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 19

Course Topics System-level design

• Methodologies and languages [SpecC]• System-level design tools [SCE]

1. Specification modeling• Formal Models of Computation (MoC)

– Parallel programming models, threads, dataflow, process networks– Hierarchical and concurrent finite state machine (FSM) models

2. Performance modeling• Estimation and simulation (virtual prototyping) models

– Host-compiled OS and processor models for computation– Transaction-level modeling of communication

3. System synthesis• Design space exploration and optimization

– Mapping, partitioning and scheduling algorithms– Design space exploration heuristics

Prerequisites Software: C/C++ (algorithms and data structures) Hardware: VHDL/Verilog (digital design) Embedded systems and embedded software

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 20

Class Administration

• Schedule• Lectures: MW 3-4:30pm, RLM 5.114 • Midterm exam (tentative): December 2 (in class)

• Instructor• Prof. Andreas Gerstlauer <[email protected]>

– Office hours: POB 6.118, M 4:30-5:30pm, W 2-3pm, or after class/by appt.

• Teaching Assistant• Zhuoran Zhao <[email protected]>

– Office hours: TBD

• Information• Web page: http://www.ece.utexas.edu/~gerstl/ee382n_f15• Announcements, assignments, grades: Canvas• Questions, discussions: Canvas

Page 11: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 11

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 21

Textbooks (1)

• Recommended

• D. Gajski, S. Abdi, A. Gerstlauer, G. Schirner, Embedded System Design: Modeling, Synthesis, Verification, Springer, 2009 (“orange book”)

– http://www.cecs.uci.edu/embedded-system-design-book/

• Additional references

• E. A Lee, S. Seshia, Introduction to Embedded Systems: A Cyber-Physical Systems Approach, 2nd ed., 2015

– Available for download at http://leeseshia.org

• P. Marwedel, Embedded System Design: Embedded Systems Foundations of Cyber-Physical Systems, 2nd ed., Springer, 2011

– http://ls12-www.cs.tu-dortmund.de/~marwedel/es-book/

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 22

Textbooks (2)

• Background material

• A. Gerstlauer, R. Doemer, J. Peng, D. Gajski, System Design: A Practical Guide with SpecC, Kluwer, 2001 (“yellow book”)

– Practical, example-driven introduction using SpecC

– Electronic copy of selected chapters on Canvas

• T. Groetker, S. Liao, G. Martin, S. Swan,System Design with SystemC, Kluwer, 2002 (“black book")

– Reference for SystemC language and methodology

– Electronic version through UT libraries

Page 12: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 12

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 23

Policies

• Grading• Homeworks: 20%• Labs: 20% • Midterm: 20% • Project: 40% No late submissions!

• Academic dishonesty• Homeworks are independent

– Discuss questions and problems with others– Turn in own, independently developed solution

• Labs and project are teamwork– Teams of up to 3 students– One report and presentation

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 24

Homeworks and Labs

• Three to four homeworks and one exam

• Cover theoretical aspects of system design– Languages

– Models

– Exploration and optimization

• Some practical implementation– Exposure to general language and modeling concepts

• Three labs

• Real-world system design– Design example using SpecC and System-on-Chip Environment (SCE)

• From specification to implementation– Specification modeling

– Performance modeling

– Design space exploration

– Hardware/software synthesis

Page 13: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 13

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 25

Project

• Two options

• Research project– System design research problem

– Literature survey on system design research area

• Implementation project– Non-trivial system design example/case study

– Specification, exploration, implementation

• Project timeline (tentative)

• Abstract: September 30 (Canvas)

• Proposal, literature survey: October 28 (Canvas)

• Presentations: November 23 & 25 (in class)

• Report: finals week (December 15)

Final report and presentation in publishable quality

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 26

Some Possible Projects• Design projects

• (Embedded) system design example– Specify, model, simulate, explore, synthesize using SCE

» Existing examples: MP3 Decoder, AC3 Decoder, Jpeg Encoder, GSM Vocoder» Backend synthesis down to ARM+FPGA prototyping board

• Research projects• Modeling

– Specification modeling» Develop/modify a language or MoC: data parallel extensions of SpecC/SystemC» Translation between MoCs & languages: from Matlab/SDF/… to SpecC/SystemC

– Performance modeling» Component modeling: QEMU-SpecC/SystemC integration, bus modeling» Automatic model generation: generate bus TLMs from abstract protocol descriptions» OS modeling: OS-internal timing estimation and back-annotation» Performance estimation and modeling (timing, power, reliability, …): statistical simulation,

parallel or hardware/software co-simulation of functional & performance models» Assertion-based verification in a TLM environment

• Synthesis– Pick an optimization/exploration problem and solve it

» Decision making: machine learning for optimization (allocation, partitioning, scheduling), design space exploration for dataflow models/signal processing systems

» OS scheduling for power, performance, reliability» Hardware or software synthesis for new OS/processors: targeting Linux in SCE

Page 14: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 14

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 27

Successful Past Projects

• Modeling

• X. Zheng, “Learning-Based Analytical Cross-Platform Performance Prediction,” SAMOS 2015 (best paper award)

• A. Abdel-Hadi, J. Michel, "Real-Time Optimization of Video Transmission in a Network of AAVs," VTC 2011.

• A. Pedram, C. Craven, T. Amimeur, “Modeling Cache Effects at the Transaction Level,” IESS 2009 (best paper runner-up)

• A. Banerjee, “Transaction Level Modeling of Best Effort Channels for Networked Embedded Devices”, IESS 2009.

• Exploration and synthesis

• S. Lee, K. Saleem, J. Li, "Fine Grain Word Length Optimization for Dynamic Precision Scaling in DSP Systems," VLSI-SoC 2013 (best paper candidate)

• J. Lin, A. Srivatsa, “Heterogeneous Multiprocessor Mapping for Real-Time Streaming Systems,” ICASSP 2011.

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 28

Lecture 1: Outline

Introduction Embedded systems

System-level design

Course information Topics

Logistics

Projects

• Design methodology• System-level design flow

• Models and methodologies

Page 15: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 15

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 29

Evolution of Design Flows

Specs

Algorithms

Capture & Simulate

Specs

Algorithms

Describe & Synthesize

Executable Spec

Algorithms

Specify, Explore & Refine

Architecture

Network

SW/HW

Logic

Physical

SW? SW?

Design

Logic

Physical

Design

Logic

Physical

Manufacturing Manufacturing Manufacturing

1960's 1980's 2000's

Functionality

Simulate Simulate

Describe

Algorithms

Connectivity

Protocols

Performance

Timing

System Gap

Source: D. Gajski, UC Irvine

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 30

Design Process• Sequence of steps that transforms a set of requirements

described informally into a detailed description that can be used for manufacturing• Intermediate steps with transformation from a more

abstract description to a more detailed one (refinement)• A designer can perform step-by-step refinement

• The “input” description is a specification• The final description of the design is an implementation

Take a model of the design at a level of abstraction and refine it to a lower one (level of detail ).• Ensure that the properties at the lower level of abstraction

are verified, and that the performance indices are satisfactory

• Thus, refinement process involves mapping constraints, performance indices and properties to the lower level, so that they can be computed for the next level down

Source: M. Jacome, UT Austin

Page 16: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 16

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 31

Abstraction Levels

Temporal orderLow abstraction

High abstraction

Implementation Detail

Spatial order

physical layout

unstructured

Structure

real time

untimed

Timing

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 32

Design Methodology

• Set of Models

• Design representations– Specification and documentation at interface between steps

• Set of Transformations

• Design decisions and design steps– Refine input model into an output model reflecting decisions

Formalization of a design flow

• Break into well-defined, repeatable steps

Automate

Page 17: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 17

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 33

Y-Chart

Behavior(Function)

Structure (Netlist)

Physical (Layout)

Logic

Circuit

Processor

System

RTL

Gates

Transistors

PE,Bus

Specification

Algorithm

Boolean logic

Transfer

(a v b)

Mod

els

of C

ompu

tatio

n (M

oCs) M

odels of Structure (M

oSs)

Source: D. Gajski, UC Irvine

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 34

Processor Synthesis

Program model (CDFG) Microarchitecture model (RTL)

B1

B2

ALU Memory

RF / Scratch pad

MUL

B3

AG

PC

CW

Sta

tus

...const

offset

status

address

CMemIF

IF

BB1

BB2 BB3

Y

YN

N

• Software processor• Compilation and linking

• Hardware processor• High-level synthesis

Source: D. Gajski, UC Irvine

Page 18: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 18

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 35

System Synthesis

• Structure• Partitioning, mapping

• Timing• Scheduling

C1

P5

P3

P4

dP1

P2

d

C2

Bri

dg

e

P1 P3

CPU Mem

HW IP

P5

C1, C2

Arb

iter

P4P2

C1, C2CPU Bus IP Bus

Source: D. Gajski, UC Irvine

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 36

Bottom-Up Methodology

• Each level generates library for the next higher level

• Circuit: Standard cells for logic level

• Logic: RTL components for processor level

• Processor: Processing and communication components for system level

• System: System platforms for different applications

• Floorplanning and layout on each level

Behavior(Function)

Structure(Netlist)

Physical(Layout)

Logic

Circuit

Processor

System

Start

RTL

Gates

Transistors

PE,Bus

Source: D. Gajski, UC Irvine

Page 19: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 19

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 37

Top-down Methodology

• Functional description is converted into component netlist on each level

• Each component function is decomposed further on the next abstraction level

• Layout is given only for transistor components

Source: D. Gajski, UC Irvine

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 38

Meet-in-the-Middle Methodology

• Gate netlist is hand-off• Three levels of synthesis

• System is synthesized with processor components

• Processor components are synthesized with RTL library

• RTL components are synthesized with standard cells

• Two levels of layout• System layout is performed

with standard cells• Standard cells layout with

transistors

Source: D. Gajski, UC Irvine

Page 20: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 20

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 39

Platform-Based Design

• Meet-in-the-middle at the system level

• System platform with standard components

• System synthesis to map specification onto platform template

• Some custom processor are synthesized (to RTL and gates)

• Other (programmable) processors are pre-synthesized and just need software compilation

• Layout and floorplanning at the SoC level

Behavior(Function)

Structure(Netlist)

Physical(Layout)

System

Start

RTL

Gates

Transistors

PE, Bus

Source: D. Gajski, UC Irvine

System-Level Design Methodology

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 40

Behavior StructureSystem Synthesis

HW/SW Synthesis

Page 21: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 21

System-Level Design Methodology

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 41

Behavior

Structure

Sys

tem

Pro

cess

or

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 42

System-Level Design Flow

ImplementationModel

ArchitectureModel

SpecificationModel

Logic Design

Product planning

Structure

pure functional

bus functional

RTL / ISA

gates

requirements

Timing

untimed

timing accurate

cycle accurate

gate delays

constraints

System Design

Processor Design

Page 22: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 22

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 43

SpecC Design Flow

Implementation model

Communication model

Specification model

Logic design

Product planning

pure functional

partitioned

bus functional

RTL / IS

requirements

untimed

scheduled

timing accurate

cycle accurate

constraints

Computation model

Processor design

Communication design

Computation design

Structure Timing

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 44

SpecC Design Methodology

untimed

execution timing

timing accurate

cycle accurate

constraints

pure functional

transaction level

bus functional

RTL / IS

requirements

Specification model

Algor.IP

BusIP

Computation model

Communication refinement

PEIP

Implementation model

Softwaresynthesis

Interfacesynthesis

Hardwaresynthesis

RTOSIP

RTLIP

Computation refinement

Capture

Communication model

Product planning

Logic designStructure Timing

Page 23: EE382N: Embedded System Design and Modelingusers.ece.utexas.edu/~gerstl/ee382n_f15/notes/lecture1.pdf · EE382N: Embedded System Design and Modeling ... embedded systems are designed

EE382N: Embedded Sys Dsgn/Modeling Lecture 1

(c) 2015 A. Gerstlauer 23

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 45

System-On-Chip Environment (SCE)

ArchnArchnArchn

Impln

Spec

ImplnImpln

Synthesize target HW/SW

Compile onto platform

Commercial derivative for Japanese Aerospace Exploration Agency

EE382N: Embedded Sys Dsgn/Modeling, Lecture 1 © 2015 A. Gerstlauer 46

Lecture 1: Summary

Introduction Embedded systems

System-level design

Course information Topics

Logistics

Projects

Design methodology Models and methodologies

System-level design flow