SlideShare uma empresa Scribd logo
1 de 63
An introduction to Embedded Systems Michele Arcuri Software Engineering 2 A.A. 2001-2002
Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is an embedded system? ,[object Object],[object Object]
What is an embedded system? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Typical Embedded System Organization   ADC ASIC DAC FPGA
Embedded System Applications ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Typical Embedded System Constraints ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Small Size, Low Weight   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Power management   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Harsh Environment   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Safe and Reliable   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Distinctive Embedded System Attributes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Reactive Real-Time Embedded Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Embedded System Design ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Design Problem ,[object Object],[object Object],[object Object]
System Architecture ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Embedded System Design Traditional Methodology HW Design & Build Hardware/Software Partitioning and Allocation SW Design & Code Interface Design HW/SW Integration
Problems with Past Design Method ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Embedded System Design HW/SW Co-Design Methodology HW Design & Build Hardware/Software Partitioning and Allocation SW Design & Code Interface Design HW/SW Integration
Embedded System Design Behavior/Architecture Co-Design Methodology Mapping Behavioral Specification High Level  Performance Simulation System Synthesis Architectural Specifications Architectural Specifications Architectural Specifications Architectural Specifications C HDL
Behavior/Architecture Co-Design Goals ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Formal System Specification ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why a  Formal System Specification ? ,[object Object],[object Object],[object Object],[object Object]
Formal System Specification ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Formal System Specification ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Formal Model  (based on  L. Lavagno ’s articles)   ,[object Object],[object Object],[object Object],[object Object],[object Object]
Language ,[object Object],[object Object],[object Object],[object Object]
Synthesis ,[object Object],[object Object],[object Object],[object Object],[object Object]
Mapping from Specification to Architecture ,[object Object],[object Object]
Partitioning ,[object Object],[object Object]
Hardware and Software Synthesis ,[object Object],[object Object],[object Object],[object Object]
System Validation ,[object Object],[object Object]
System Validation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Simulation ,[object Object],[object Object]
Simulation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Formal Verification ,[object Object]
Formal Verification ,[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction to POLIS Design Methodology ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
POLIS Co-design ,[object Object],[object Object],[object Object],[object Object],< More… >
POLIS Co-design Methodology Graphical FSM ESTEREL ................ Sw Synthesis Sw Code +  RTOS Logic Netlist Hw Synthesis Intfc + RTOS Synthesis CFSMs Rapid prototyping Compilers Partitioning Formal Verification Simulation
Polis Design Flow ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The ESTEREL language ,[object Object],[object Object],[object Object],[object Object],[object Object],< Example >
The ECL language ,[object Object],[object Object],[object Object],< Example >
ECL compilation Implementation HW / SW ECL Specification Esterel   Code C - code Simulation Model
CFSM ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],< Example >
Finite State Machines (FSM) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Event ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why hardware prototypes ? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
References ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
References ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Glossary   ,[object Object],[object Object],[object Object],[object Object]
Glossary ,[object Object],[object Object]
Glossary ,[object Object],[object Object],[object Object],[object Object]
Glossary ,[object Object],[object Object],[object Object],[object Object]
Glossary ,[object Object],[object Object],[object Object],[object Object]
Glossary ,[object Object],[object Object],[object Object],[object Object]
Key aspects of the methodology  ,[object Object],[object Object],[object Object]
Key aspects of the methodology ,[object Object],[object Object],[object Object]
Example: readable counter ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],go  =>  t:=t+1  reset  =>  t:=0  s1 s0 req and not go  =>  ack(t)
Example : complete ECL module while (1) { /* get bytes into frame */ for (i = 0; i < SIZE; i++) { await  (in); buf[i] = in;} create_frame_from_buffer(&f, buf); emit  (frame, f); }   PAR   while (1) { /* check CRC */ await   (frame); for (i = 0; i < HSIZE; i++) crc ^= frame.hdr[i]; if (crc != frame.crc)  emit  (bad_crc); }   PAR while (1) { /* process address (if correct) */ await  (frame); do  { /* … */;  emit   (out, frame) }  abort  (bad_crc);  } } typedef { byte hdr[HSIZE]; byte data[DSIZE]; int crc; } frame_t; module  frame_proc ( input   byte  in,  output   frame_t  out) { signal   frame_t   frame;  signal   bad_crc; byte  buf[SIZE];  frame_t  f; int crc;
CFSM Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CFSM Example KEY_ON => START_TIMER END_TIMER_5 =>  ALARM_ON KEY_OFF or BELT _ON => END_TIMER_10 or BELT_ON or KEY_OFF => ALARM_OFF ALARM OFF If no condition is satisfied, self-loop and no output ( empty execution ) WAIT

Mais conteúdo relacionado

Mais procurados

Design of embedded systems
Design of embedded systemsDesign of embedded systems
Design of embedded systems
Pradeep Kumar TS
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
Himanshu Ghetia
 

Mais procurados (20)

Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Embedded systems basics
Embedded systems basicsEmbedded systems basics
Embedded systems basics
 
Design of embedded systems
Design of embedded systemsDesign of embedded systems
Design of embedded systems
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Embedded Systems
Embedded SystemsEmbedded Systems
Embedded Systems
 
Embedded systems ppt
Embedded systems pptEmbedded systems ppt
Embedded systems ppt
 
Embedded system introduction
Embedded system introductionEmbedded system introduction
Embedded system introduction
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Embedded systems
Embedded systems Embedded systems
Embedded systems
 
Ppt on embedded systems
Ppt on embedded systemsPpt on embedded systems
Ppt on embedded systems
 
Embedded System-design technology
Embedded System-design technologyEmbedded System-design technology
Embedded System-design technology
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
Embedded system.ppt
Embedded system.pptEmbedded system.ppt
Embedded system.ppt
 
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
 
Classification of embedded systems
Classification of embedded systemsClassification of embedded systems
Classification of embedded systems
 
Embedded system and development
Embedded system and developmentEmbedded system and development
Embedded system and development
 
Real-Time Embedded System Design
Real-Time Embedded System DesignReal-Time Embedded System Design
Real-Time Embedded System Design
 

Destaque

Embedded systems
Embedded systemsEmbedded systems
Embedded systems
jattatt
 
Embedded Systems in Automobile
Embedded Systems in AutomobileEmbedded Systems in Automobile
Embedded Systems in Automobile
Abhishek Sutrave
 

Destaque (8)

Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
introduction to Embedded System
introduction to Embedded Systemintroduction to Embedded System
introduction to Embedded System
 
Introduction to Embedded System
Introduction to Embedded SystemIntroduction to Embedded System
Introduction to Embedded System
 
Embedded system-in-automobiles
Embedded system-in-automobilesEmbedded system-in-automobiles
Embedded system-in-automobiles
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systems
 
Embedded Systems in Automobile
Embedded Systems in AutomobileEmbedded Systems in Automobile
Embedded Systems in Automobile
 
Embedded system in automobile
Embedded system in automobile Embedded system in automobile
Embedded system in automobile
 

Semelhante a Embedded

Socio Technical Systems in Software Engineering SE2
Socio Technical Systems in Software Engineering SE2Socio Technical Systems in Software Engineering SE2
Socio Technical Systems in Software Engineering SE2
koolkampus
 
Design of embedded systems tsp
Design of embedded systems tspDesign of embedded systems tsp
Design of embedded systems tsp
Pradeep Kumar TS
 
Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02
ishan111
 
Embedded System
Embedded SystemEmbedded System
Embedded System
surendar
 
EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1
PRADEEP
 
Embedded systems in brief
Embedded systems   in briefEmbedded systems   in brief
Embedded systems in brief
krnathan
 
IOT Design: An Embedded System & its Applications
IOT Design: An Embedded System & its ApplicationsIOT Design: An Embedded System & its Applications
IOT Design: An Embedded System & its Applications
SruthiReddy112
 
IOT based embedded systems using arduino
IOT based embedded systems using arduinoIOT based embedded systems using arduino
IOT based embedded systems using arduino
Nagen87
 
It 443 lecture 1
It 443 lecture 1It 443 lecture 1
It 443 lecture 1
elisha25
 

Semelhante a Embedded (20)

Embedded 120206023739-phpapp02
Embedded 120206023739-phpapp02Embedded 120206023739-phpapp02
Embedded 120206023739-phpapp02
 
ES-Basics.pdf
ES-Basics.pdfES-Basics.pdf
ES-Basics.pdf
 
Socio Technical Systems in Software Engineering SE2
Socio Technical Systems in Software Engineering SE2Socio Technical Systems in Software Engineering SE2
Socio Technical Systems in Software Engineering SE2
 
Design of embedded systems tsp
Design of embedded systems tspDesign of embedded systems tsp
Design of embedded systems tsp
 
Report file on Embedded systems
Report file on Embedded systemsReport file on Embedded systems
Report file on Embedded systems
 
Unit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorUnit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processor
 
System engineering
System engineeringSystem engineering
System engineering
 
Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Connectivity challenges APC Europe by Alan Weber
Connectivity challenges APC Europe by Alan WeberConnectivity challenges APC Europe by Alan Weber
Connectivity challenges APC Europe by Alan Weber
 
EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1
 
btech embedded systems ppt ES UNIT-1.pptx
btech embedded systems ppt ES UNIT-1.pptxbtech embedded systems ppt ES UNIT-1.pptx
btech embedded systems ppt ES UNIT-1.pptx
 
Addressing Connectivity Challenges of Disparate Data Sources in Smart Manufac...
Addressing Connectivity Challengesof Disparate Data Sourcesin Smart Manufac...Addressing Connectivity Challengesof Disparate Data Sourcesin Smart Manufac...
Addressing Connectivity Challenges of Disparate Data Sources in Smart Manufac...
 
Embedded systems in brief
Embedded systems   in briefEmbedded systems   in brief
Embedded systems in brief
 
IOT Design: An Embedded System & its Applications
IOT Design: An Embedded System & its ApplicationsIOT Design: An Embedded System & its Applications
IOT Design: An Embedded System & its Applications
 
IOT_Embedded_Systems_industrail applications.ppt
IOT_Embedded_Systems_industrail applications.pptIOT_Embedded_Systems_industrail applications.ppt
IOT_Embedded_Systems_industrail applications.ppt
 
IOT based embedded systems using arduino
IOT based embedded systems using arduinoIOT based embedded systems using arduino
IOT based embedded systems using arduino
 
It 443 lecture 1
It 443 lecture 1It 443 lecture 1
It 443 lecture 1
 
Embedded Technology
Embedded TechnologyEmbedded Technology
Embedded Technology
 
Ch2
Ch2Ch2
Ch2
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Embedded

  • 1. An introduction to Embedded Systems Michele Arcuri Software Engineering 2 A.A. 2001-2002
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. Typical Embedded System Organization ADC ASIC DAC FPGA
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. Embedded System Design Traditional Methodology HW Design & Build Hardware/Software Partitioning and Allocation SW Design & Code Interface Design HW/SW Integration
  • 19.
  • 20. Embedded System Design HW/SW Co-Design Methodology HW Design & Build Hardware/Software Partitioning and Allocation SW Design & Code Interface Design HW/SW Integration
  • 21. Embedded System Design Behavior/Architecture Co-Design Methodology Mapping Behavioral Specification High Level Performance Simulation System Synthesis Architectural Specifications Architectural Specifications Architectural Specifications Architectural Specifications C HDL
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41. POLIS Co-design Methodology Graphical FSM ESTEREL ................ Sw Synthesis Sw Code + RTOS Logic Netlist Hw Synthesis Intfc + RTOS Synthesis CFSMs Rapid prototyping Compilers Partitioning Formal Verification Simulation
  • 42.
  • 43.
  • 44.
  • 45. ECL compilation Implementation HW / SW ECL Specification Esterel Code C - code Simulation Model
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61. Example : complete ECL module while (1) { /* get bytes into frame */ for (i = 0; i < SIZE; i++) { await (in); buf[i] = in;} create_frame_from_buffer(&f, buf); emit (frame, f); } PAR while (1) { /* check CRC */ await (frame); for (i = 0; i < HSIZE; i++) crc ^= frame.hdr[i]; if (crc != frame.crc) emit (bad_crc); } PAR while (1) { /* process address (if correct) */ await (frame); do { /* … */; emit (out, frame) } abort (bad_crc); } } typedef { byte hdr[HSIZE]; byte data[DSIZE]; int crc; } frame_t; module frame_proc ( input byte in, output frame_t out) { signal frame_t frame; signal bad_crc; byte buf[SIZE]; frame_t f; int crc;
  • 62.
  • 63. CFSM Example KEY_ON => START_TIMER END_TIMER_5 => ALARM_ON KEY_OFF or BELT _ON => END_TIMER_10 or BELT_ON or KEY_OFF => ALARM_OFF ALARM OFF If no condition is satisfied, self-loop and no output ( empty execution ) WAIT