Embedded Prathap
Embedded Prathap
Embedded Prathap
Presented by
Dr.A.V.PRATHAP KUMAR
INTRODUCTION
Embedded Systems :-
An embedded system is a special-purpose computer system designed to
perform a dedicated function (OR)
Application-specific systems which contain hardware and software tailored
for a particular task and are generally part of a larger system (e.g.,
industrial controllers)
A generic embedded
system
Characteristics
Are dedicated to a particular application
Include processors dedicated to specific functions
Represent a subset of reactive (responsive to external
inputs) systems
Contain real-time constraints
Include requirements that span:
Performance
Reliability
Form factor
Why Embedded system ?
• Performance
• Technology Advances
• CMOS VLSI dominates older technologies (TTL, ECL)
• Computer architecture improvements
• RISC, superscalar, RAID, …
• Price
• Simpler development
• CMOS VLSI: smaller systems, fewer components
• Higher volumes
• CMOS VLSI : same device cost 10,000 vs. 10,000,000 units
Structure
EMBEDDED SYSTEM
• Key concepts
• Concurrent: hardware and software developed at the same
time on parallel paths
• Integrated: interaction between hardware and software
developments to produce designs that meet performance
criteria and functional specifications
Essential components and
considerations
• Essential components :-
- Microprocessor / DSP core
- Sensors
- Converter ( A-D and D-A )
- Actuators
- Memory (on-chip and off-chip )
- Communication path with interfacing environment
• Essential considerations :-
- Response time ;- ( Real time system )
- Area, Cost, Power, Portability, Fault-tolerance
Design-flow in ES Design
A mix of Disciplines
• DSP, Communication, Control…..
• Software Engineering
• Programming Languages
• Compiler and OS
• Architecture, Processor and IO techniques
• Parallel and Distributed computing
• Real Time Systems
• VLSI CAD
Models and Architecture
• Models :-
- Conceptual view of system’s functionality
- A set of functional objects and rules for composing these
objects.
• Architectures :-
- Abstract view of system’s functionality
- A set of implementation components and their connections
Modeling : Introduction
• Modeling starts with System Specification
• One of the keys to a GOOD hardware/software Codesign process is a unified representation the allows the
functionality of the system (at various levels of abstraction) to be specified in a manner that is “unbiased” towards
either a hardware or software implementation.
• Unified Representation –
• A representation of a system that can be used to describe its functionality independent of its
implementation in hardware or software
• Allows hardware/software partitioning to be delayed until trade-offs can be made
• Typically used at a high-level in the design process
• Provides a simulation environment after partitioning is done, for both hardware and software designers to use to
communicate
• Heterogeneous Models :-
- Control / Data Flow Graph
- Structure Chart
- Programming Languages : C, C++, Java, Verilog, VHDL, Esterel, SDL (Speciation and Description
Language), CSP (Communicating Sequential Process), SpecCharts, StateCharts etc...
- Object Oriented Paradigm
- Program state Machine
- Queuing model
- Process Networks : Kahn’s Process Network
- Communicating Sequential Processes ( CSP )
- Synchronous Data Flow model ( SDF )
Models
• N numbers of Models for design representation !!! Now
question is which model to choose ???
• Concurrency :-
- Can exists at difference levels such as :-
# Job Level
# Task Level
# Statement Level
# Operation Level
# Bit Level
- Two types of concurrency within a behavior :-
# Data driven
# Control driven
Specification Language
Requirements II
• State Transitions :-
- System are often modeled as state-based, e.g. Controller
- difficult to capture using programming construct
• Hierarchy :-
- Required for managing system complexity
- Allows system modeler to focus on one sub-system at a time
- Two types of hierarchy :-
# Structural Hierarchy
# Behavioral Hierarchy
# Concurrent Decomposition :- fork-join , process
# Sequential Decomposition :- procedure, state machine
Specification Language
Requirements III
• Behavioral Completion :-
- Behavior completes when all computation performed
- Advantages : Behavior can be viewed with inter-level transitions and
allows natural decomposition into sequential behavior
• Communication :-
- Concurrent behavior exchange data
- Are of two types
# Shared memory model
# Message passing model
Specification Language
Requirements IV
• Synchronization :-
- Needed when concurrent behavior executes at different speeds
- Required when :-
# Data exchange between behavior
# Different activities must be performed simultaneously
- Types
# Control dependent :- by reset , fork-join etc...
# Data dependent :- synchronization by :-
# Common event
# Status detection
# Common variable
Specification Language
Requirements V
• Exception handling :-
- Occurrence of event terminates current computation
- Control transferred to appropriate next mode
- Ex :- Reset, Interrupt
• Timing :-
- Required to implement / represent real time situation
- Ex :-
Wait for 100 ns
A <= A+1 after 200ns etc..
Specification Languages Examples
• A good ES specification Language should support all the above characteristics of ES
• Essential Characteristics :-
# State Transition
# Exceptions
# Behavioral Hierarchy
# Concurrency
# Programming Construct
# Behavioral Completion
• Goal
• To achieve a partition that will give us the required performance
within the overall system requirements (in size, weight, power,
cost, etc.)
• Hardware implementation
• Provides higher performance via hardware speeds and parallel execution of
operations
• Incurs additional expense of fabricating ASICs
• Software implementation
• May run on high-performance processors at low cost (due to high-volume
production)
• Incurs high cost of developing and maintaining (complex) software
Partitioning Approaches
• Functional :-
# System partitioning in the context of HW-SW partitioning is known as functional partitioning
# Approach:- System’s functionality is described as collection of indivisible functional objects
# Each system’s functionality is either implemented in either hardware or software
# Advantages:- Enables better size/performance tradeoff
# Uses fewer objects
# Better for Algorithms / Humans
# Permits HW-SW solutions
# But is harder than graph partitioning
Partitioning Metrics
• Deterministic estimation techniques
• Can be used only with a fully specified model with all data
dependencies removed and all component costs known
• Result in very good partitions
• Statistical estimation techniques
• Used when the model is not fully specified
• Based on the analysis of similar systems and certain design
parameters
• Profiling techniques
• Examine control flow and data flow within an architecture to
determine computationally expensive parts which are better
realized in hardware
Binding Software
to Hardware
• Binding: assigning software to hardware
components
• After parallel implementation of assigned modules,
all design threads are joined for system integration
• Early binding commits a design process to a certain
course
• Late binding, on the other hand, provides greater
flexibility for last minute changes
Issues in Partitioning
• Specification abstraction level
• Granularity
• System-component allocation
• Metrics and estimations
• Partitioning algorithms
• Objective and closeness functions
• Partitioning algorithms
• Output
• Flow of control and designer interaction
Specification Abstraction
Levels
• Task-level dataflow graph
• -A Dataflow graph where each operation represents a task
• Task
– Each task is described as a sequential program
• Arithmetic-level dataflow graph
– A Dataflow graph of arithmetic operations along with some
control operations
– The most common model used in the partitioning techniques
• Finite state machine (FSM) with datapath
– A finite state machine, with possibly complex expressions
being computed in a state or during a transition
Specification Abstraction Levels
(Cont.)
• Register transfers
• The transfers between registers for each machine state
are described
• Structure
• A structural interconnection of physical components
• Often called a netlist
Granularity Issues in Partitioning
• A technique must define the attributes of a partition that determine its quality
• Such attributes are called metrics
• Examples include monetary cost, execution time, communication bit-rates, power
consumption, area, pins, testability, reliability, program size, data size, and memory
size
• Closeness metrics are used to predict the benefit of grouping any two objects
• Need to compute a metric’s value
• Because all metrics are defined in terms of the structure (or software) that implements the
functional objects, it is difficult to compute costs as no such implementation exists during
partitioning Two key metrics are used in hardware/software partitioning
• Hardware size: Hardware size is generally improved by moving objects out of hardware
Partitioning Approaches
• Traditional Approaches
• Take Objective function as a weighted sum along with
constrains considerations
• Aim:- To minimize Power, Delay, cost, Area etc...
• Here is the objective function values which is obviously
multimodal with multiple maxima and minima.
B
A, B - Local minima
A
C - Global minimum
C
Basic partitioning algorithms
• Clustering and multi-stage clustering [Joh67, LT91]
• Genetic evolution
• For Hardware :-
# BUD
# Aparty
• For Systems :-
# Vulcan I
# Vulcan II
# Cosyma
# SpecSyn
Summary
• Partitioning heavily influence design quality
• Functional partitioning is necessary
• Executable specification enables
# Automation
# Exploration
# Documentation
• Variety of algorithm exist
• Variety of techniques exist for different applications