Real-time Embedded Systems Cyclic scheduling. CYCLIC and SIMPLE EXECUTIVES Endless loop Basic cyclic executive Time driven cyclic executive Multi-rate.

Slides:



Advertisements
Similar presentations
Introduction to Embedded Systems Resource Management - III Lecture 19.
Advertisements

Apollo 11 The Great Race By: Cameron Trulock. The Crew Neil Armstrong Michael Collins Edwin Aldrin, Jr.
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
- the new generation realtime operating system For embedded and fault tolerant applications.
1 of 14 1 /23 Flexibility Driven Scheduling and Mapping for Distributed Real-Time Systems Paul Pop, Petru Eles, Zebo Peng Department of Computer and Information.
1 July 20, 1969 The day software bugs nearly lost us the moon July 20, 2004.
Roman LyseckyUniversity of California, Riverside1 Techniques for Reducing Read Latency of Core Bus Wrappers Roman L. Lysecky, Frank Vahid, & Tony D. Givargis.
1 of 14 1 Analysis and Synthesis of Communication-Intensive Heterogeneous Real-Time Systems Paul Pop Computer and Information Science Dept. Linköpings.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 of 14 1 / 18 An Approach to Incremental Design of Distributed Embedded Systems Paul Pop, Petru Eles, Traian Pop, Zebo Peng Department of Computer and.
Space Transportation NASA is responsible for regulating and directing the entire US space program Space vehicles take us beyond the earth Currently consists.
Advanced Embedded Systems Design Pre-emptive scheduler BAE 5030 Fall 2004 Roshani Jayasekara Biosystems and Agricultural Engineering Oklahoma State University.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
THE FIRST LUNAR LANDING 1.Apollo 11 Crew 2.Time Table 3.Saturn V 4.Planning Ahead 5.Docking with Eagle 6.Science Experiments.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Software Software essential is coded programs that perform a serious of algorithms. Instructions loaded into primary memory (RAM) from secondary storage.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
20-2a pgs. 549 – 550  IN: How do you think our moon formed?
Scheduling policies for real- time embedded systems.
Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between.
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
From The Earth to The Moon From The Earth to The Moon :: A Brief History About NASA’s Apollo 11 Mission July
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
RTOS task scheduling models
The Apollo 11 Moon Landing
My project on space By football fan and Lego boy.
My Project on Space By Underdog Apollo 11  First footsteps on the Moon.
The Apollo 11 crew from left to right: Neil Armstrong, Commander; Michael Collins, command module pilot; and Edwin E. Aldrin Jr., lunar module pilot.
Journey to the Moon Saturn V rocket powers Apollo 11's lift-off from Kennedy Space Centre Journey to the Moon.
Apollo 11 By Ryan Nish and Mikenzie Hammond. Landing on the moon The first manned spacecraft landing on the Moon was at 3:17 p.m. EST on July 20, 1969,
Apollo 11 And The Moon Landings. The Crew The Apollo 11 crew from left to right: Neil Armstrong, Commander; Michael Collins, command module pilot; and,
Real Time Operating Systems Michael Thomas Date: Rev. 1.00Date.
SE-3910 Real-time Systems Week 10, Class 2 – Real-Time Systems Apollo 11 Toyota 2005 Camry L4 – Discussion SE Dr. Josiah Yoder Slide style: Dr.
MicroC/OS-II S O T R.  MicroC/OS-II (commonly termed as µC/OS- II or uC/OS-II), is the acronym for Micro-Controller Operating Systems Version 2.  It.
2 Now use the passage titled, “Exploring the Moon”
Computer Architecture Lecture 6 by Engineer A. Lecturer Aymen Hasan AlAwady 1/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
4 Linking the Components Linking The Components A computer is a system with data and instructions flowing between its components in response to processor.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
Physics Unit 3 FORCES Objectives: 5.3 -Determine Equilibrium Forces -Determine the motion of an object on an inclined plane with and without.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
APOLLO 11 “One giant leap for mankind.”
SPACE TRAVEL Eldon Primary School KS2 Science Project (Autumn 2015)
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Computers and Space Travel January 31, 2016 Kevin Tang.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
 Apollo 11: First Moon Landing. Apollo 11  Apollo 11 was the spaceflight which landed the first humans, Neil Armstrong and Edwin "Buzz" Aldrin, Jr,
Apollo was a three-part spacecraft: 1. Command Module (CM)- held the crew's quarters and flight control section 2. Service module (SM)- for the propulsion.
20-2a pgs. 549 – 550  IN: How do you think our moon formed?
The Man on the Moon Neil Armstrong. Neil Armstrong was an astronaut. He landed on the moon in He was the first man to land on the moon.
Grade 4 J.Strehlow  One of the main reasons for the Apollo Mission was to be the first country to reach the moon.  This was important because the Soviet.
Real-time Embedded Systems Rate monotonic theory scheduling.
Real-Time Operating Systems RTOS For Embedded systems.
The Moon.
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
The Apollo 11 Mission By Lucy Savage.
Embedded Systems Design
Electronics & Computing Technology
Space Transportation Space vehicles take us beyond the earth
The Moon Part 3.
Apollo and Beyond.
EE 472 – Embedded Systems Dr. Shwetak Patel.
Three Programs and One Goal
Cyclic executives for Bare Hardware
KAPOW Lesson 4 Go Team Go!.
APOLLO SCENE SETTING.
Presentation transcript:

Real-time Embedded Systems Cyclic scheduling

CYCLIC and SIMPLE EXECUTIVES Endless loop Basic cyclic executive Time driven cyclic executive Multi-rate cyclic executive - mrce including interrupts Priority based pre-emptive executive More specialised Rate Monotonic, Deadline Monotonic

C YCLIC E XECUTIVES Manually constructed Time Frame or Schedule Completely deterministic execution Schedule repeatedly executed every X * T ms

UTILISATION Any Task can be measured by an: Execution time C and a period P C If not preempted P Note for all tasks to be executable here, the utilisation :

C YCLIC E XECUTIVES - EXAMPLE Minor cycle time is HCF [highest common factor] of Task periods Major cycle time must be this HCF times LCM [least common multiple] of other task period factors

C YCLIC E XECUTIVES - EXAMPLE The tasks have periods: 100: 150: 300 => HCF is 50= 2: 3: 6 LCM is 6 Minor cycle = 50 ms & 6 minor cycles in each Major

C YCLIC E XECUTIVES - EXAMPLE Fitting code segments into slots: Time consuming iterative process Change example so Task 3 requires P of 350 then the periods are in ratio of 100:150:350 = 2: 3: 7 would require 42 minor cycles ! => Modification to add functions can be expensive in redesign time. => fragile design Time Frame C=40, P=100 C=100, P=300 C=40, P=150

C YCLIC E XECUTIVES - - RECAP Manually constructed Time Frame for the Schedule Repeatedly Executed and so is Fully Deterministic Minor cycle time is HCF [highest common factor] of Task periods [Minor cycle dictates minimum cycle time] Major cycle time must be this HCF times LCM [least common multiple] of other task period factors [Major cycle dictates maximum cycle time] Fitting code segments into the pattern of time slots is a time-consuming, iterative process => Modification to add functions is commonly expensive in redesign time => fragile design

C YCLIC E XECUTIVES - EXAMPLE S ONET High Efficiency Transparent LAN (using low-power Micro) Densely Packs Data on Loop-back, Base-band Bus Single Interface Type for ALL Devices SONET: a Simple Open Network, MD Cripps, MJ Reeve C Sowden, Journal of Microcomputer Applications, vol 8 pp 63-74, Aug 1985

C YCLIC E XECUTIVES - EXAMPLE S ONET

7 MINOR CYCLE 0..7 SLCMIDRES MASTER Slot0 Net Data Receive 1 Data to/from User 2 Net Server CMD/ID 3 User Interface Switch/signals 4 Data to/from User 5 Flow control translation 6 Error handling 7 Net Transmit

C YCLIC E XECUTIVES - EXAMPLE S ONET 'SIMPLE ' TIME-DRIVEN, CYCLIC EXECUTIVE So MAJOR CYCLE: 40  s + 3 * 59  s + 8 * ( 8 * 59  s ) [ MINOR CYCLES ] i.e ms per major cycle 250 major cycles/sec SLCMIDRES MASTER 40  s SLACK + 3 Slots [ 59  s ] SERVER Command* + Node ID* + RESET *or Node response to command of previous cycle 7 MINOR CYCLE MINOR CYCLES each of 8 'Slots' of 59  s i.e ms per major cycle

M ORE F LEXIBLE S CHEDULING Apollo (-11) LEM AGC † Real-time multi-tasking operating system (Peter Adler & Don Eyles MIT Instrumentation Lab) 1. WAITLIST - up to 9 tasks, execution times ≤ 4 ms Interrupt-driven, time-dependent tasks (e.g. LEM Descent Engine) 2. EXECUTIVE - Priority-ordered queue; Less time-critical; Reschedule every 20 ms. † , Raytheon Corp. approx 5000 RTL bipolar IC's (Fairchild). 20 instructions approximately. 36K words (14 bits + sign + parity) rope core ROM; 2K words core RAM; MHz master clock; Add time - 20 microsec approximately.

R EAL -T IME S CHEDULING & THE MOON 1 Apollo 11 LEM “Eagle” Ref: A Fire on the Moon Norman Mailer, Weidenfeld & Nicolson Ltd, 1970, ISBN pp343 On July 20, 1969, while Michael Collins orbited the Moon in Columbia, Neil Armstrong & Buzz Aldrin descended to the lunar surface. At 30,000ft Buzz Aldrin Reported 1202 Alarms Executive Overflow: no core sets Major concern until CapCom (Charlie Duke who flew on Apollo-16) relayed 'Go on that 1202' on down to 2,000ft Aldrin reported 1201 Alarms Executive Overflow: no vacant areas

R EAL -T IME S CHEDULING & THE MOON 2 Action on an Alarm: Restart AGC & the program in progress when alarm hit Thus sheds low priority activity Rendezvous (high-altitude gate) radar left on as surface approached Edwin E. "Buzz" Aldrin Probable cause of schedule not meeting deadline was combination of all other tasks with landing radar and higher level radar - PINGS (PrimaryNavigation & Guidance)