Introduction to Embedded Architecture

amrutachintawar239 5,375 views 71 slides Sep 04, 2015
Slide 1
Slide 1 of 71
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71

About This Presentation

this Presentation will give you complete overview of Embedded Architecture,Design metrics,Characteristics and few case studies


Slide Content

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

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

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

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

Comparison
Friday, September 04, 2015 By AMRUTA CHINTAWAR 5

Various Embedded Mobile Systems
Desktop PC
Data Processing Consumer
Communication Automotive & etc.
DTV
Media
Center
Game
Console
DSC
DVC
Car Navigation
DVD
Telematics
MP3 Player
Credit Card
Cellular Phone
Notebook PC
Internet
Smart Phone PDA
Bluetooth
Audio
Friday, September 04, 2015 6 By AMRUTA CHINTAWAR

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

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.

Example
Friday, September 04, 2015 By AMRUTA CHINTAWAR 9

Example: Digital Thermostat
Friday, September 04, 2015 By AMRUTA CHINTAWAR 10

Example: Mobile phone
Friday, September 04, 2015 By AMRUTA CHINTAWAR 11

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

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

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

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

Level Abstraction
Friday, September 04, 2015 By AMRUTA CHINTAWAR 16
requirements
specification
architecture
component
design
system
integration

Architecture
Friday, September 04, 2015 By AMRUTA CHINTAWAR 17

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

Components of Embedded system
Friday, September 04, 2015 By AMRUTA CHINTAWAR 19
ï‚§RTOS/EOS



ï‚§S/W Tools
- Development tools
- Simulator
- Project Manager
- IDE

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)

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

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

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

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

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

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

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

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

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

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

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

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

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

SoC
Friday, September 04, 2015 By AMRUTA CHINTAWAR 34

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

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

H/W and S/W Co-Design
Friday, September 04, 2015 By AMRUTA CHINTAWAR 37

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

Development Process
Friday, September 04, 2015 By AMRUTA CHINTAWAR 39

Levels of Abstraction from Top to Bottom
•Requirements
•Specifications
•Architecture
•Components
•System Integration
Friday, September 04, 2015 By AMRUTA CHINTAWAR 40

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

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

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

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

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

Design Examples
•ACVM
•Smart Card
•Digital Camera
•Mobile phones
•Mobile Computer
•Set of Robots
Friday, September 04, 2015 By AMRUTA CHINTAWAR 46

ACVM
Friday, September 04, 2015 By AMRUTA CHINTAWAR 47

ACVM Block diagram
Friday, September 04, 2015
By AMRUTA CHINTAWAR
48

ACVM
Friday, September 04, 2015
By AMRUTA CHINTAWAR
49

ACVM
Friday, September 04, 2015
By AMRUTA CHINTAWAR
50

ACVM H/W
Friday, September 04, 2015
By AMRUTA CHINTAWAR
51

ACVM H/W
Friday, September 04, 2015
By AMRUTA CHINTAWAR
52

ACVM S/W
Friday, September 04, 2015
By AMRUTA CHINTAWAR
53

SMART CARD
Friday, September 04, 2015 By AMRUTA CHINTAWAR 54

SMART CARD
Friday, September 04, 2015
By AMRUTA CHINTAWAR
55

SMART CARD
Friday, September 04, 2015
By AMRUTA CHINTAWAR
56

ROM
Friday, September 04, 2015
By AMRUTA CHINTAWAR
57

ROM
Friday, September 04, 2015
By AMRUTA CHINTAWAR
58

Embedded S/W
Friday, September 04, 2015
By AMRUTA CHINTAWAR
59

Smart Card OS Special Features
Friday, September 04, 2015
By AMRUTA CHINTAWAR
60

Smart Card OS Limitimg Features
Friday, September 04, 2015
By AMRUTA CHINTAWAR
61

Smart Card OS file System
Friday, September 04, 2015
By AMRUTA CHINTAWAR
62

DIGITAL CAMERA
Friday, September 04, 2015 By AMRUTA CHINTAWAR 63

Digital Camera H/W Components
Friday, September 04, 2015
By AMRUTA CHINTAWAR
64

Digital Camera
Friday, September 04, 2015
By AMRUTA CHINTAWAR
65

Digital Camera Arrangements
Friday, September 04, 2015
By AMRUTA CHINTAWAR
66

Internal Units
Friday, September 04, 2015
By AMRUTA CHINTAWAR
67

Internal Units
Friday, September 04, 2015
By AMRUTA CHINTAWAR
68

ASIP and Single purpose processors
Friday, September 04, 2015
By AMRUTA CHINTAWAR
69

Digital Camera H/W
Friday, September 04, 2015
By AMRUTA CHINTAWAR
70

Digital Camera S/W
Friday, September 04, 2015
By AMRUTA CHINTAWAR
71