24
Winter-Spring 2001 Codesign of Embedded System s 1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Embed Size (px)

Citation preview

Page 1: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms1

Introduction to HW/SW Codesign

Part ofHW/SW Codesign of

Embedded Systems Course (CE 40-226)

Page 2: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms2

Today programme Introduction to HW/SW Codesign

Distinguishing features of electronic systems

System-level codesign issues

Reference:

G. De Micheli, M. Sami, “Hardware/Software Co-design”, NATO ASI Series, Kluwer Academic Publishers, 1996.

Reference:

G. De Micheli, M. Sami, “Hardware/Software Co-design”, NATO ASI Series, Kluwer Academic Publishers, 1996.

Page 3: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms3

Introduction to HW/SW Codesign

Distinguishing features of electronic systems

Page 4: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms4

Distinguishing features of electronic systems

ApplicationDomain

Degree ofProgrammability

Level ofIntegration

HardwareTechnology

Page 5: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms5

Application domains General-purpose computing

systems Dedicated computing and control

systems Emulation and prototyping

systems

Page 6: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms6

Application domains (cont’d) GP computing systems

Traditional computers End-user can program them Support applications of different kinds

Dedicated computing and/or control systems Specific target applications Limited programming access for the user Dedicated software programs Known as Embedded Systems

“Control functions” or “Data comm. and processing” or both

Page 7: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms7

Application domains (cont’d) Emulation and prototyping systems

Programmable HW technology Hardware configuration by HW compilers

(synthesis systems) Specialized users program them Intermediate points of the design and

manufacturing of a product

Page 8: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms8

Degree of programmability Programmability at the

Application level Instruction level Hardware level

Page 9: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms9

Degree of programmability (cont’d) Application level

Most restricted level User have to use specialized language

VCR - Automated navigation systems

Instruction level Personal computer users Writing, compiling and executing programs Processor architecture defines degree of

programmability

Page 10: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms10

Degree of programmability (cont’d) Hardware level

Configuring HW after manufacturing Micro-programming: emulation of

other ISAs Common for DSPs, not for ISPs (esp. RISC)

FPGAs

Page 11: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms11

Degree of programmability (cont’d) Programmability

Increases applicability, but not performance Top performance in

GP computing: super-scalar RISC architectures Dedicated applications: ASICs

Some app. domains (ex. Comm.) ASIPs: specialized instruction-level

programmable processors Midway between ASIC and ISP: Performance, Power,

Production volume

Page 12: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms12

Technology Digital-system components have

Different scale of integration Discrete and integrated components

Different fabrication technology Bipolar, CMOS

To us, technology affects field-programmability Storing programs in memory Configurable HW

One-time configurable Re-configurable

Page 13: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms13

Level of Integration Digital systems are

Lumped => System-on-Chip Distributed

Advantages of higher integration Higher reliability Lower power budget Increased performance

Disadvantages Larger chip sizes. More complex

debugging

Page 14: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms14

Introduction to HW/SW Codesign

System-level Co-Design Issues

Page 15: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms15

General-purposecomputing systems ISP: Primarily in general-purpose computing

Codesign of ISP is strange Architectural support for OS Compiler development: Retargetable,

Optimizing Codesign areas:

organizational choices: pipelines, concurrency, memory hierarchy

Instruction-set selection Performance Compatibility

Page 16: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms16

Dedicated computing and control systems Data-processing systems

GP DSP / ASIP ASIP

Less compatibility, more performance Need for application-specific compilers

Retargetable compilers Computer-Aided compiler generation

fixed-point arithmetic operations Hence, use assembly Today design time: SW > HW

Page 17: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms17

Dedicated computing … (cont’d) Embedded control systems

Sen

sors

Memory CPU

Act

uato

rs

Hardwired UnitRandom Logic

TimersA/D D/A

Embedded System

Page 18: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms18

Dedicated computing … (cont’d) Control systems

Often have a data-processing component Reactive systems

RT: hard/soft Timers

Safety and reliability more important than performance

Safety: Formal verification+ System-level testing Reliability: Redundancy

Page 19: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms19

Emulation and prototyping systems Codesign application 1:

SW accelerators/coprocessors Specific operations: floating-point ops. Critical loops: exploiting local parallelism

for(j=0; j<N; j++) a[j] = a[j] + b[j]; for(j=1; j<N; j++) a[j] = a[j] + a[j-1];

Coprocessors based on programmable HW

Example: PAM (PeRLe-0, PeRLe-1)

Page 20: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms20

Emulation and prototyping systems (cont’d)

Major codesign problems: Identifying critical parts of SW Compile critical SW parts for HW

emulation

Codesign application 2: Acceleration of system-level

simulation by HW emulation

Page 21: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms21

Emulation and prototyping systems (cont’d) Codesign application 3:

Computer-aided prototyping Validate HW before manufacturing to

avoid expensive redesign Prototyping of complex digital systems

(HW + SW)

Page 22: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms22

What we learned today Categorized digital systems

This helps in decision-makings in codesign strategies and algorithms

Reviewed problem areas within each application domain

Page 23: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms23

Complementary notes Verilog Short Course

Instructor: Farshid Soheili, Emad Semicon. Co.

First session Saturday: Esfand 6th

“Avecina-16” room

VHDL short course will also be held soon

Page 24: Winter-Spring 2001Codesign of Embedded Systems1 Introduction to HW/SW Codesign Part of HW/SW Codesign of Embedded Systems Course (CE 40-226)

Winter-Spring 2001 Codesign of Embedded Syste

ms24

Complementary notes (cont’d) Optional paper presentation

Any subtopic from second topic of today programme:

System-Level Co-Design Issues