71
Embedded Systems Chapter 1:Embedded Architecture BY AMRUTA CHINTAWAR Friday, September 04, 2015 By AMRUTA CHINTAWAR 1

Introduction to Embedded Architecture

Embed Size (px)

Citation preview

Page 1: Introduction to Embedded Architecture

Embedded Systems Chapter 1:Embedded Architecture

BY

AMRUTA CHINTAWAR

Friday, September 04, 2015 By AMRUTA CHINTAWAR 1

Page 2: Introduction to Embedded Architecture

Embedded Architecture

Friday, September 04, 2015 By AMRUTA CHINTAWAR 2

• Embedded computers

• Characteristics

• Applications

• Challenges

• Embedded memories

• ES design process

• Requirement specifications

• Architecture

• H/W and S/W components

• System Integration

• Design examples

Page 3: Introduction to Embedded Architecture

Definition

• Embedded computing system: any device that includes a programmable computer but is not itself a general-purpose computer.

• System has a S/W embedded into Computer H/W, which makes the system dedicated for an application or specific part of an application or product or part of a larger system.

Friday, September 04, 2015 By AMRUTA CHINTAWAR 3

Page 4: Introduction to Embedded Architecture

Definition

• Embedded systems (ES) = information

processing systems embedded into a

larger product

• Main reason for buying is not information

processing

Friday, September 04, 2015 By AMRUTA CHINTAWAR 4

Page 5: Introduction to Embedded Architecture

Comparison

Friday, September 04, 2015 By AMRUTA CHINTAWAR 5

Page 7: Introduction to Embedded Architecture

Examples

• Biomedical Instrumentation: ECG Recorder, Blood cell

recorder, patient monitor system

• Communication system: pagers, cellular phones, cable TV

terminals, fax and transreceiver, video games and so on.

• Peripheral controllers of a computer –keyboard controller,

DRAM controller, Printer Controller, LAN controller, Disk

drive Controller

Friday, September 04, 2015 By AMRUTA CHINTAWAR 7

Page 8: Introduction to Embedded Architecture

Examples

Friday, September 04, 2015 By AMRUTA CHINTAWAR 8

• Industrial Instrumentation- Process controller,

DC motor controller, robotic system, CNC

machines controller, close loop engine

controller, industrial moisture recorder cum

controller

• Scientific –digital storage system, CRT display

controller, spectrum analyzer.

Page 9: Introduction to Embedded Architecture

Example

Friday, September 04, 2015 By AMRUTA CHINTAWAR 9

Page 10: Introduction to Embedded Architecture

Example: Digital Thermostat

Friday, September 04, 2015 By AMRUTA CHINTAWAR 10

Page 11: Introduction to Embedded Architecture

Example: Mobile phone

Friday, September 04, 2015 By AMRUTA CHINTAWAR 11

Page 12: Introduction to Embedded Architecture

Characteristics • Dedicated and sophisticated functionality

• Low manufacturing cost, low power

• Complex Algorithm

• GUI, other user interface

• Reliability

• Real Time operations

-latencies

-Deadlines

• Multirate Operations

-Audio

-Vedio

Friday, September 04, 2015 By AMRUTA CHINTAWAR 12

Page 13: Introduction to Embedded Architecture

Design Metrics/Goals • Reliability

• Power Consumption

• Cost :NRE cost & Manufacturing cost

• Weight/size

• Time: time to prototype & time to market

• Flexibility

• Performance

• Debuggability

• Safty & maintaince

• Maximum usage of resources

Friday, September 04, 2015 By AMRUTA CHINTAWAR 13

Page 14: Introduction to Embedded Architecture

Challenges • How much hardware do we need?

– How big is the CPU? Memory?

• How do we meet our deadlines?

– Faster hardware or cleverer software?

• How do we minimize power?

– Turn off unnecessary logic? Reduce memory accesses?

• Does it really work?

– Is the specification correct?

– Does the implementation meet the spec?

– Reliability in safety-critical systems

Friday, September 04, 2015 By AMRUTA CHINTAWAR 14

Page 15: Introduction to Embedded Architecture

Challenges • How do we work on the system?

– Complex testing

• How do we test for real-time characteristics?

• How do we test on real data?

– Limited observability and controllability

– Restricted development environments

• What is our development platform?

Friday, September 04, 2015 By AMRUTA CHINTAWAR 15

Page 16: Introduction to Embedded Architecture

Level Abstraction

Friday, September 04, 2015 By AMRUTA CHINTAWAR 16

requirements

specification

architecture

component design

system integration

Page 17: Introduction to Embedded Architecture

Architecture

Friday, September 04, 2015 By AMRUTA CHINTAWAR 17

Page 18: Introduction to Embedded Architecture

Components of Embedded system

Friday, September 04, 2015 By AMRUTA CHINTAWAR 18

H/W

- Processor

- Power source and clock

- Reset circuit

- Memory Unit

- Interrupt Handler

- Linking Embedded System H/W

- I/O communication Unit

S/W

- ROM image/Applications/w

- Programming Languages

- Device Drivers

- Program Models

Page 19: Introduction to Embedded Architecture

Components of Embedded system

Friday, September 04, 2015 By AMRUTA CHINTAWAR 19

RTOS/EOS

S/W Tools

- Development tools

- Simulator

- Project Manager

- IDE

Page 20: Introduction to Embedded Architecture

Types of Cores

Friday, September 04, 2015 By AMRUTA CHINTAWAR 20

Requirments

-Able to solve complex Algorithm

- Meet Deadlines

- No.of Bits to be operated

- Bus Width

- Clock Frequency

- Performance(MIPS/MFLOPS)

Page 21: Introduction to Embedded Architecture

Types of Cores

Friday, September 04, 2015 By AMRUTA CHINTAWAR 21

GPP: General Purpose Processor

-Microprocessors

-Embedded Processors

ASIP: Application Specific Instruction Processor

-Micro controller

-Embedded Micro controller

-DSP and media Processor

-Network Processor

SPP: Single Purpose Processor

-Coprocessors eg:Math-coprocessor

-Accelerators eg:java acce

-Controllers eg:DMA

Page 22: Introduction to Embedded Architecture

Types of Cores

Friday, September 04, 2015 By AMRUTA CHINTAWAR 22

ASIC/VLSI chip: Application specific Integrated circuit

-GPP/ASIP integrated with analog circuits on VLSI chip using EDA tools.

ASSP:Application Specific System Processor

-set top box

-Mpeg

-HD tv

eg:vedio Processors

Multicore Processors/Multiprocessor using GPP

eg:Embedded firewall cum Router

Page 23: Introduction to Embedded Architecture

Power Sources,Clock and Reset Circuit

Friday, September 04, 2015 By AMRUTA CHINTAWAR 23

Power supply

-Own supply

-Supply from System

-Charge Pumps

Clock

-External Clock supply

-Oscillator

-RTC

Reset

-Power On

-External/Internal Reset

-WDT

-BOR

Page 24: Introduction to Embedded Architecture

Memory Unit,Interrupt Handlers

Friday, September 04, 2015 By AMRUTA CHINTAWAR 24

Memory

ROM/EPROM/FLASH (internal/External)

RAM

Caches

Interrupt Handler

External port interrupt

I/O,Timer, RTC, interrupts

S/W Interrupt/Exceptions

Linking ES H/W

Multiplexers

Decodes

Page 25: Introduction to Embedded Architecture

I/O communication Unit

Friday, September 04, 2015 By AMRUTA CHINTAWAR 25

I/O,O/P devices

-Sensors,

-actuators

-converters

-keypads

-displays

Buses

-Parallel Buses

-serial buses

Page 26: Introduction to Embedded Architecture

S/W-ROM Image, Programming

Language

Friday, September 04, 2015 By AMRUTA CHINTAWAR 26

ROM Image

-Final Machine s/w

-Can be compressed code or data

-Distinct ROM image in distinct ES

Programming Languages

-Machine

-Assembly

-High Level

Page 27: Introduction to Embedded Architecture

S/W-Device Driver, Managers

Friday, September 04, 2015 By AMRUTA CHINTAWAR 27

It connects external H/w with Processor

Controlling

Receiving

Sending

Part of OS

Manages device

Initializing

Testing

Detecting

Allocating port addresses

Page 28: Introduction to Embedded Architecture

RTOS/OS

Friday, September 04, 2015 By AMRUTA CHINTAWAR 28

It performs functions

Multitasking

Scheduling

Management

Resource protection

Interprocess Communication

eg: Ucos-II, Vxworks, windows CE, RT linux,QNX

Page 29: Introduction to Embedded Architecture

Embedded Memories

Friday, September 04, 2015 By AMRUTA CHINTAWAR 29

Internal RAM at µc –SRAM used as reg, temp data,

stack

RAM AT SoC or External RAM

Internal/external caches at µp -hold copy of

system memory pages

External RAM chips -DRAM used to hold extra data

Flash EPROM/EEPROM -result stored in NV memory

ROM/PROM/MROM/OTP -Application S/W, OS

Memory addresses at system ports -RAM buffers

Memory Stick -large storage such as audio, video

Page 30: Introduction to Embedded Architecture

I/O Devices

Friday, September 04, 2015 By AMRUTA CHINTAWAR 30

• DAC using PWM

• ADC

• LCD,LED and Touch Screen

• Keypad/keyboard/T9 keypad

• Pulse dialer

• Modem

• Transceiver

• Interrupt handler -mechanism to handle various

interrupts and also to deal with pending

services

Page 31: Introduction to Embedded Architecture

Difference between RISC and CISC

Friday, September 04, 2015 By AMRUTA CHINTAWAR 31

RISC CISC

Reduced instruction set Complex Instruction set

Maximum instructions are

single cycle(fixed size),thus

supports pipelining

Variable size Instructions,so

generally do not have

pipelining

Orthogonal instruction set Non-Orthogonal

Operations are performed on

registers, so large no of

Registers.

For memory only Load and

Store

Operations are performed on

both registers and memory.

Limited number of GPRs

Page 32: Introduction to Embedded Architecture

Difference between RISC and CISC

Friday, September 04, 2015 By AMRUTA CHINTAWAR 32

RISC CISC

Hardwired Control unit Microcode control Unit

Small in size with resp to die area

and No.of pins

Comparatively large in size since

more complex instruction needs

to be implemented.

Harvard architecture Harvard or Von-Neuman

Eg:PIC18,ARM 8051,8086

Page 33: Introduction to Embedded Architecture

SoC

Friday, September 04, 2015 By AMRUTA CHINTAWAR 33

• System designed on a single chip

• Processor with all analog, digital and S/W

build on a single VLSI chip

Page 34: Introduction to Embedded Architecture

SoC

Friday, September 04, 2015 By AMRUTA CHINTAWAR 34

Page 35: Introduction to Embedded Architecture

SoC

Friday, September 04, 2015 By AMRUTA CHINTAWAR 35

It embeds

• EGPP or ASIP

• SPP or Multiprocessor

• N/W bus protocol

• Encryption and Dycryption

• Signal processing such as FFT,DCT

• Memories

• IP-Intellectual

• PLDs or FPGA

• Accelerators or other logic and analog units

Page 36: Introduction to Embedded Architecture

IP-Intellectual Property

Friday, September 04, 2015 By AMRUTA CHINTAWAR 36

• A standard source solution for synthesizing a

higher level component by configuring an

FPGA core/VLSI core

• Components-gate level sophistication in

circuits above that of counter, register,

multiplier, FLU and ALU

Page 37: Introduction to Embedded Architecture

H/W and S/W Co-Design

Friday, September 04, 2015 By AMRUTA CHINTAWAR 37

Page 38: Introduction to Embedded Architecture

H/W and S/W Co-Design

Friday, September 04, 2015 By AMRUTA CHINTAWAR 38

• Joint optimization of H/W and S/W to

optimize design metrics

• S/W and H/W partitioning at early stage

• Both proceed in parallel with interactions and

feedback

• System specification required

• H/W synthesis

• S/W synthesis

• Simulation

• Implementation

Page 39: Introduction to Embedded Architecture

Development Process

Friday, September 04, 2015 By AMRUTA CHINTAWAR 39

Page 40: Introduction to Embedded Architecture

Levels of Abstraction from Top to Bottom

• Requirements

• Specifications

• Architecture

• Components

• System Integration

Friday, September 04, 2015 By AMRUTA CHINTAWAR 40

Page 41: Introduction to Embedded Architecture

Requirement

Complete clarity of:

• Required Purpose

• Inputs

• Outputs

• Functioning

• Design metrics

• Validation requirements for finally developed

system specifications

• Consistency in the requirements

Friday, September 04, 2015 By AMRUTA CHINTAWAR 41

Page 42: Introduction to Embedded Architecture

Specifications

• Clear specification of customer expectations

from the product

• Needs specification for

– H/W, eg: Peripherals, Divices,Processors and

memory specifications

– Data types and processing specifications

• Expected system behavior specifications

• Constraints of design

• Expected lifecycle specifications of the

product

Friday, September 04, 2015 By AMRUTA CHINTAWAR 42

Page 43: Introduction to Embedded Architecture

Specifications

• Process specifications analyzed by making list

of I/Ps on event list, O/Ps on events, process

activated on each event

Friday, September 04, 2015 By AMRUTA CHINTAWAR 43

Page 44: Introduction to Embedded Architecture

S/W Architectural Layers

• How the different elements- data structures,

data bases, algorithms, control functions,

state transition functions, process, data and

program flow are to be organized

• Data base and Data structure design-

appropriate for given problem

Eg: tree like structure

Friday, September 04, 2015 By AMRUTA CHINTAWAR 44

Page 45: Introduction to Embedded Architecture

H/W Components

• Processors, ASIP, Single Processors

• All Types of Memory as per requirement

• Internal and External peripherals and

devices

• Ports and Buses in the system

• Power sources and battery

Friday, September 04, 2015 By AMRUTA CHINTAWAR 45

Page 46: Introduction to Embedded Architecture

Design Examples

• ACVM

• Smart Card

• Digital Camera

• Mobile phones

• Mobile Computer

• Set of Robots

Friday, September 04, 2015 By AMRUTA CHINTAWAR 46

Page 47: Introduction to Embedded Architecture

ACVM

Friday, September 04, 2015 By AMRUTA CHINTAWAR 47

Page 48: Introduction to Embedded Architecture

ACVM Block diagram

Friday, September 04, 2015 By AMRUTA CHINTAWAR

48

Page 49: Introduction to Embedded Architecture

ACVM

Friday, September 04, 2015 By AMRUTA CHINTAWAR

49

Page 50: Introduction to Embedded Architecture

ACVM

Friday, September 04, 2015 By AMRUTA CHINTAWAR

50

Page 51: Introduction to Embedded Architecture

ACVM H/W

Friday, September 04, 2015 By AMRUTA CHINTAWAR

51

Page 52: Introduction to Embedded Architecture

ACVM H/W

Friday, September 04, 2015 By AMRUTA CHINTAWAR

52

Page 53: Introduction to Embedded Architecture

ACVM S/W

Friday, September 04, 2015 By AMRUTA CHINTAWAR

53

Page 54: Introduction to Embedded Architecture

SMART CARD

Friday, September 04, 2015 By AMRUTA CHINTAWAR 54

Page 55: Introduction to Embedded Architecture

SMART CARD

Friday, September 04, 2015 By AMRUTA CHINTAWAR

55

Page 56: Introduction to Embedded Architecture

SMART CARD

Friday, September 04, 2015 By AMRUTA CHINTAWAR

56

Page 57: Introduction to Embedded Architecture

ROM

Friday, September 04, 2015 By AMRUTA CHINTAWAR

57

Page 58: Introduction to Embedded Architecture

ROM

Friday, September 04, 2015 By AMRUTA CHINTAWAR

58

Page 59: Introduction to Embedded Architecture

Embedded S/W

Friday, September 04, 2015 By AMRUTA CHINTAWAR

59

Page 60: Introduction to Embedded Architecture

Smart Card OS Special Features

Friday, September 04, 2015 By AMRUTA CHINTAWAR

60

Page 61: Introduction to Embedded Architecture

Smart Card OS Limitimg Features

Friday, September 04, 2015 By AMRUTA CHINTAWAR

61

Page 62: Introduction to Embedded Architecture

Smart Card OS file System

Friday, September 04, 2015 By AMRUTA CHINTAWAR

62

Page 63: Introduction to Embedded Architecture

DIGITAL CAMERA

Friday, September 04, 2015 By AMRUTA CHINTAWAR 63

Page 64: Introduction to Embedded Architecture

Digital Camera H/W Components

Friday, September 04, 2015 By AMRUTA CHINTAWAR

64

Page 65: Introduction to Embedded Architecture

Digital Camera

Friday, September 04, 2015 By AMRUTA CHINTAWAR

65

Page 66: Introduction to Embedded Architecture

Digital Camera Arrangements

Friday, September 04, 2015 By AMRUTA CHINTAWAR

66

Page 67: Introduction to Embedded Architecture

Internal Units

Friday, September 04, 2015 By AMRUTA CHINTAWAR

67

Page 68: Introduction to Embedded Architecture

Internal Units

Friday, September 04, 2015 By AMRUTA CHINTAWAR

68

Page 69: Introduction to Embedded Architecture

ASIP and Single purpose processors

Friday, September 04, 2015 By AMRUTA CHINTAWAR

69

Page 70: Introduction to Embedded Architecture

Digital Camera H/W

Friday, September 04, 2015 By AMRUTA CHINTAWAR

70

Page 71: Introduction to Embedded Architecture

Digital Camera S/W

Friday, September 04, 2015 By AMRUTA CHINTAWAR

71