8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System...

44
© Jan Beutel / Lothar Thiele Computer Engineering and Networks Laboratory Embedded Systems 8. Hardware Components

Transcript of 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System...

Page 1: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

© Jan Beutel / Lothar ThieleComputer Engineering and Networks Laboratory

Embedded Systems8. Hardware Components

Page 2: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 2

Lecture Overview

1. Introduction to Embedded Systems2. Software Development3. Hardware-Software Interface4. Programming Paradigms5. Embedded Operating Systems6. Real-time Scheduling7. Shared Resources8. Hardware Components9. Power and Energy

10. Architecture Synthesis

Page 3: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 3

Do you Remember ?

Page 4: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 4

Page 5: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 5

High-Level Physical View

Page 6: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 6

High-Level Physical View

Page 7: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 7

Implementation Alternatives

PerformanceEnergy Efficiency Flexibility

Application-specific integrated circuits (ASICs)

Application-specific instruction set processors (ASIPs)

• Microcontroller• DSPs (digital signal processors)

General-purpose processors

Programmable hardware

• FPGA (field-programmable gate arrays)

Page 8: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 8

Energy Efficiency

© Hugo De Man, IMEC, Philips, 2007

Page 9: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 9

Topics General Purpose Processors

System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

System-on-Chip

Page 10: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 10

General-Purpose Processors High performance

Highly optimized circuits and technology Use of parallelism

superscalar: dynamic scheduling of instructions super-pipelining: instruction pipelining, branch prediction, speculation

complex memory hierarchy Not suited for real-time applications

Execution times are highly unpredictable because of intensive resource sharing and dynamic decisions

Properties Good average performance for large application mix High power consumption

Page 11: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 11

General-Purpose Processors Multicore Processors

Potential of providing higher execution performance by exploiting parallelism

Especially useful in high-performance embedded systems, e.g. autonomous driving

Disadvantages and problems for embedded systems: Increased interference on shared resources such as buses and shared caches Increased timing uncertainty

Page 12: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 12

Multicore Examples

4 cores

48 cores

Page 13: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 13

Multicore Examples

Intel Xeon Phi(5 Billion transistors,

22nm technology, 350mm2 area)

Oracle Sparc T5

Page 14: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 14

Implementation Alternatives

PerformanceEnergy Efficiency Flexibility

Application-specific integrated circuits (ASICs)

Application-specific instruction set processors (ASIPs)

• Microcontroller• DSPs (digital signal processors)

General-purpose processors

Programmable hardware

• FPGA (field-programmable gate arrays)

Page 15: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 15

Topics General Purpose Processors

System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

Heterogeneous Architectures

Page 16: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 16

System Specialization The main difference between general purpose highest volume microprocessors

and embedded systems is specialization.

Specialization should respect flexibility application domain specific systems shall cover a class of applications some flexibility is required to account for late changes, debugging

System analysis required identification of application properties which can be used for specialization quantification of individual specialization effects

Page 17: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 17

Embedded Multicore ExampleRecent development:

Specialize multicore processors towards real-time processing and low power consumption

Target domains:

Page 18: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 18

Example: Code-size Efficiency RISC (Reduced Instruction Set Computers) machines designed for run-time-, not

for code-size-efficiency. Compression techniques: key idea

(de)compressor

Page 19: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 19

Example: Multimedia-Instructions

• Multimedia instructions exploit that many registers, adders etc. are quite wide (32/64 bit), whereas most multimedia data types are narrow (e.g. 8 bit per color, 16 bit per audio sample per channel).

• Idea: Several values can be stored per register and added in parallel.

+4 additions per instruction; carry disabled at word boundaries.

Page 20: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 20

Example: Heterogeneous Processor Registers

MR

MFMX MY

*+,-

AR

AFAX AY

+,-,..

DP

Address generation unit (AGU)

Address-registersA0, A1, A2 ..

Different functionality of registers AR, AX, AY, AF,MX, MY, MF, MR

Example (ADSP 210x):

Page 21: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 21

Example: Multiple Memory Banks

MR

MFMX MY

*+,-

AR

AFAX AY

+,-,..

DP

Address generation unit (AGU)

Address-registersA0, A1, A2 ..

Enables parallel fetches for some operations

Page 22: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 22

Example: Address Generation Units• Data memory can only be fetched with

address contained in register file A, but its update can be done in parallel with operation in main data path (takes effectively 0 time).

• Register file A contains several precomputed addresses A[i].

• There is another register file M that contains modification values M[j].

• Possible updates:M[j] := ‘immediate’ A[i] := A[i] ± M[j]A[i] := A[i] ± 1A[i] := A[i] ± ‘immediate’ A[i] := ‘immediate’

Example (ADSP 210x):

Page 23: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 23

Topics System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

Heterogeneous Architectures

Page 24: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 24

Microcontroller Control-dominant applications

supports process scheduling and synchronization

preemption (interrupt), context switch

short latency times

Low power consumption

Peripheral units often integrated

Suited for real-time applications

8051 coreSIECO51 (Siemens)

•Major System Components

Page 25: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 25

Microcontroller as a System-on-Chip• complete system

• timers

• I2C-bus and par./ser.interfaces for communi-cation

• A/D converter

• watchdog (SW activitytimeout): safety

• on-chip memory (volatile/non-volatile)

• interrupt controller

MSP 430 RISC Processor (Microchip)

Page 26: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 26

Topics System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

Heterogeneous Architectures

Page 27: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 27

Data Dominated Systems Streaming oriented systems with mostly periodic behavior Underlying model of computation is often a signal flow graph or data flow graph:

Typical application examples: signal processing multimedia processing automatic control

BBf1 f2 f3

f2

B B

BB: buffer

Page 28: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 28

Digital Signal Processor optimized for data-flow applications suited for simple control flow parallel hardware units (VLIW) specialized instruction set high data throughput zero-overhead loops specialized memory

suited for real-time applications

•Major System Components

Page 29: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 29

Very Long Instruction Word (VLIW)

Key idea: detection of possible parallelism to be done by compiler, not by hardware at run-time (inefficient).

VLIW: parallel operations (instructions) encoded in one long word (instruction packet), each instruction controlling one functional unit.

Page 30: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 30

Explicit Parallelism Instruction Computers (EPIC)

31 0

0Instr. A

31 0

0Instr. D

31 0

1Instr. F

31 0

0Instr. G

31 0

1Instr. E

31 0

1Instr. C

31 0

1Instr. B

Cycle Instruction

1 A2 B C D3 E F G

The TMS320C62xx VLIW Processor as an example of EPIC:

Page 31: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 31

Example InfineonProcessor core for car mirrors

Infineon

Page 32: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 32

Example NXP Trimedia VLIW

MIPSVLIW

Page 33: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 33

Topics System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

System-on-Chip

Page 34: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 34

FPGA – Basic Strucutre Logic Units I/O Units Connections

Page 35: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 35

Floor-plan of VIRTEX II FPGAs

Page 36: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 36

Virtex Logic Cell

[© and source: Xilinx Inc.: Virtex-II Pro™ Platform FPGAs: Functional Description, Sept. 2002, //www.xilinx.com]

Page 37: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 37

Example Virtex-6 Combination of flexibility (CLB’s), Integration and performance (heterogeneity of

hard-IP Blocks)

logic (CLB)

memory (RAM)

DSP slice

interfaces(PCI, high speed)

clock distribution

fast communication

Page 38: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

•7 - 38•Swiss Federal•Institute of Technology

•Computer Engineering•and Networks Laboratory

Virtex-6 CLB Slice

XILINX Virtex UltraScale

Page 39: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 39

Topics System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

Heterogeneous Architectures

Page 40: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 40

Application Specific Circuits (ASICS)

Custom-designed circuits are necessary if ultimate speed or energy efficiency is the goal and large numbers can be sold.

Approach suffers from long design times, lack of flexibility

(changing standards) and high costs

(e.g. Mill. $ mask costs).

Page 41: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 41

Topics System Specialization

Application Specific Instruction Sets Micro Controller

Digital Signal Processors and VLIW

Programmable Hardware

ASICs

Heterogeneous Architectures

Page 42: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 42

Example: Heterogeneous Architecture

Samsung Galaxy Note II– Eynos 4412 System on a Chip (SoC)– ARM Cortex-A9 processing core– 32 nanometer: transistor gate width– Four processing cores

Page 43: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 43

Example: Heterogeneous ArchitectureSnapdragon 835(Galaxy S8)

Hexagon DSP

Page 44: 8. Communication and Synchronization · 2019-12-17 · 8051 core SIECO51 (Siemens) •Major System Components. 8 - 25. Microcontroller as a System-on-Chip •complete system •timers

8 - 44

Example: ARM big.LITTLE Architecture

Toradex Colibri Compute-on-Module