EMBEDDED Lesson 8 - Devi Ahilya · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008...

29
2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 1 Lesson 8: Lesson 8: DESIGN PROCESSES AND DESIGN PROCESSES AND DESIGN METRIC FOR AN DESIGN METRIC FOR AN EMBEDDED EMBEDDED - - SYSTEM DESIGN SYSTEM DESIGN

Transcript of EMBEDDED Lesson 8 - Devi Ahilya · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008...

Page 1: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 1

Lesson 8: Lesson 8: DESIGN PROCESSES AND DESIGN PROCESSES AND DESIGN METRIC FOR AN DESIGN METRIC FOR AN

EMBEDDEDEMBEDDED--SYSTEM DESIGNSYSTEM DESIGN

Page 2: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 2

Abstraction� Each problem component first abstracted. � For example, Display picture and text as an

abstract class � Robotic system problem abstraction in

terms of control of motors in different degrees of freedoms.

� Application software abstracted as concurrently running multiple threads and interrupt service threads

Page 3: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 3

Program ModelProgram Model

� Procedure Oriented � Objected Oriented � Sequential processes� Concurrent processes � State machine

Page 4: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 4

Object oriented ModelObject oriented Model

� Classes � Objects � Interfaces� Package

Page 5: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 5

Hardware and Software architecture

� Assumed to consists multiple layers � Each architectural layer be well

understood before a design

Page 6: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 6

� Extra functionalities required in the system being developed be well understood from the design

Extra functional PropertiesExtra functional Properties

Page 7: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 7

System Related Family designs� Families of related systems developed

earlier taken into consideration during designing

Page 8: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 8

Modular Design� Decomposition of software into

modules that are to be implemented.� Modules should be such that they can

be composed (coupled or integrated) later.

� Effective Modular design should ensure effective (i) function independence, (ii) cohesion and (iii) coupling.

Page 9: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 9

ModulesModules� Be clearly understood and maintain

continuity. � Appropriate protection strategies are

necessary for each module. A module is not permitted to change or modify another module functionality.

� For example, protection from a device driver modifying the configuration of another device

Page 10: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 10

Mapping� Mapping into various representations

done considering the software requirements.

� For example, data flow in the same path during the program flow can be mapped together as a single entity.

Page 11: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 11

Transform and transaction mappingTransform and transaction mapping� For example, an image is input data to

a system; it can have a different number of pixels and colors of each pixel. The system has to store or process each pixel and color

� Transform mapping of image is done by appropriate compression and storage algorithms.

� Transaction mapping is done to define the sequence of the images

Page 12: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 12

User Interfaces Design� Designed as per user requirements, analysis

of the environment and system functions. � For example, in an automatic chocolate

vending machine system, the user interface is a LCD matrix display. It can display a welcome message as well as specify the coins needed to be inserted into the machine for each type of chocolate. Same ACVM may be designed with touch screen GUI. Same ACVM may be designed with VUIs. A GUI or VUI or user interface or LCD matrix display

Page 13: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 13

Interface design validation Interface design validation • Customer validation• For example, the customer must

validate message’s language, screen logo, screen icons and background color, wall paper, menus and dialogs before an interface design can proceed to the implementation stage

Page 14: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 14

Refinements Refinements

� Each component and module design needs to be refined iteratively till it becomes the most appropriate for implementation by the software team

Page 15: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 15

Design Metrics Design Metrics

Page 16: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 16

Design Metrics Design Metrics � Power Dissipation � Performance � Process Deadlines� User Interfaces � Size � Engineering cost � Manufacturing cost

Page 17: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 17

Design Metrics (Contd.)� Flexibility � Prototype development Time � Time-to- market System and � User safety Maintenance

Page 18: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 18

Abstraction of Design Process StepsAbstraction of Design Process Steps

� A design process bottom-to-top designif it builds starting from the components.

� A design process top-to-down design if it first starts with abstraction of the process and then after abstraction the details are created. Top-to-down design approach is most favouredapproach

Page 19: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 19

Software Design Cycle Software Design Cycle

Page 20: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 20

Activities for Software Design during Software-Development Process

DevelopmentProcess

1

3

2

4

Requirements ofSystem

of Design

Internal logic andExternal functions

Data Structure, SoftwareArchitecture, Interfaces

and Algorithms

Model /Analyse

Implementation

Test

Design

OneLifeCycle

LinearSequence

Page 21: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 21

Five levels of abstraction from top Five levels of abstraction from top level to bottom level in the design level to bottom level in the design

process process

� Requirements� Specifications � Architecture � Components � System Integration

Page 22: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 22

Requirements Requirements Complete clarity of � required purpose, � inputs, � outputs, � functioning, � design metrics and � Validation requirements for finally

developed systems specifications.� Consistency in the requirements

Page 23: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 23

Specifications Specifications

Clear specifications ofCustomer expectations from the product.Needs specifications for� hardware, for example, peripherals,

devices processor and memory specifications

� data types and processing specifications

Page 24: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 24

Needed specificationsNeeded specifications

� Expected system behavior specifications,

� constraints of design, � expected life cycle specifications of the

product. � Process specifications analysed by

making lists of inputs on events list, outputs on events, processes activated on each event.

Page 25: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 25

Architecture � data flow graphs � program models � software architecture layers and � hardware architecture � interfaces design� system integration

Page 26: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 26

Software architectural layers� How the different elements – data

structures, databases, algorithms, control functions, state transition functions, process, data and program flow are to be organized

� What shall be design of data structures and databases that would be most appropriate for the given problem? Whether data organised as a tree- like structure will be appropriate? What will be the design of the components in the data?

Page 27: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 27

Hardware Components Hardware Components � Processor, ASIP and single purpose

processors in the system� Memory RAM, ROM or internal and

external flash or secondary memory in the system

� Peripherals and devices internal and external to the system

� Ports and buses in the system� Power source or battery in the system

Page 28: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 28

We learnt� Design processes, models, � Modular and object oriented concepts� Design Metrics� Requirements � Specifications � Architecture � Components � System Integration

Summary Summary

Page 29: EMBEDDED Lesson 8 - Devi Ahilya  · PDF fileLesson 8: DESIGN PROCESSES AND ... Package. 2008 Chapter-1L08: "Embedded Systems ... Chapter-1L08: "Embedded Systems - " , Raj Kamal,

2008 Chapter-1L08: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 29

End of Lesson 8End of Lesson 8