Model Based Design of Embedded Software, Autumn 2020

Model Based Development uses models to describe the specifications, operation and performance of a system. Simulation, verification, and testing can be performed directly on executable models. Implementation can be automated by code generation directly from the model. The student will acquire skills in modeling embedded systems, and to use models for Simulation, verification, and testing, to derive implementations. Throughout the course, Simulink (and Stateflow) will be used as the modeling language, so the students will acquire mastery of Matlab/Simulink.

Learning outcomes:

On completion of the course, the student should be able to:

Topics

The following topics are central.

Location

The course is given over Zoom, using Zoom room no. 65412595962
https://uu-se.zoom.us/j/65412595962

Schedule

(The below schedule is copied from the
IT depts Schedule).
Week DateTimePlaceWhatMaterial (continuously updated)
Module 1: SIMULINK modeling
36 Mon31/810-12IT5Motivation, Overviewintro-adm.pdf, overview-mbd.pdf, matlab1.pdf,
Wed2/915-17IT5TUTORIAL/EXERCISES on MATLABTo prepare, read: MATLAB Primer Sections 1,2,4,5. We will do: matlab-exercises.pdf (Suggested Exercises: 9, 12, 15, 17, 22, 25, and in particular 28)
Thu3/910-12IT5LECTURE Models of Computation, SysML, Simulinksimulink1.pdf, Introduction to Simulink (Eric Peasly) (except Examples 4 and 5). Possible online supplements in Getting Started with Simulink, and online,
Thu3/913-15Zoom 65876409131TUTORIAL/EXERCISE on Simulink To prepare, try out Exercises on Simulink (Eric Peasly). If time permits, we will continue doing: simulink-exercises-1.pdf
Fri6/908-10IT5LECTURE Simulinksimulink2.pdf,
37 Mon7/915-17IT5Simulink simulink2.pdf, simulink3.pdf
Tue8/915-17IT5TUTORIAL/EXERCISE on Simulinksimulink-exercises-1.pdf (e.g., problem 2.3), simulink-exercises-2.pdf (suggested: problem 3-1, 3-2)
Wed9/908-10IT5Internals of Simulink simulator, Algebraic loopssimulink4.pdf, Section 3 of Simulink User Guide
Thu10/908-10IT5TUTORIAL/EXERCISE on Simulinksimulink-exercises-3.pdf, simulink-exercises-1.pdf, simulink-exercises-2.pdf
Thu10/924-Assignment 1a due
Fri11/910-12IT5, Intro to controller designcontrol1.pdf
Module 2: STATEFLOW modeling
38 Mon14/910-12IT5State machinesD Harel: Statecharts: A visual formalism for complex systems Science of computer programming, 1987, stateflow1.pdf
Tue15/908-101IT5Modeling in StateflowTo prepare, read chapter 1 in Stateflow User Guide, stateflow2.pdf
Tue15/913-15IT5Continue Lecture on Statefloe, and move towards TUTORIALstateflow2.pdf, stateflow-exercises-1.pdf
Wed16/915-17IT5Note change of time! TUTORIAL, Assignment 1a), modeling stateflow-exercises-1.pdf, stateflow-exercises-2.pdf
Thu17/924-Assignment 1b due
Fri18/908-10Stateflow (ctd.)stateflow2.pdf StateFlow User Guide, Chapter 3, simulink-exercises-1.pdf: Examples 2.2, 3.3
39 Mon21/910-12IT5Adding Graphical Animationsgraphics1.pdf
Tue22/908-10IT5Hybrid Systems, Continuous-time Stateflowstateflow3.pdf
Wed23/910-12IT5TUTORIAL, Return Assignment 1b, Animating Simulink/Stateflow modelsgraphics1.pdf, various models
Thu24/908-10IT5Hybrid Systems, Continuous-time Stateflowstateflow3.pdf
Thu24/924-Assignment 2a due
Fri25/908-10IT5TUTORIAL: Continuous-time Stateflowstateflow-exercises-2.pdf
Module 3: Code and Test Generation
40 Mon28/913-15IT5Design Analysis, Requirements, Monitorstesting1.pdf, Simulink Design Verifier User's Guide, Chapter 6,
Wed30/908-10IT5Requirements, Monitors (ctd.)Simulink Design Verifier User's Guide, Chapter 12,
Wed30/915-17IT5Review: Assignment 2a, TUT Requirements, Monitors
Thu1/1015-17IT5TUTORIAL: Stateflowstateflow-exercises.pdf, testing-exercises-2.pdf
Fri2/1013-15IT5LECTURE Requirements: Monitorstesting1.pdf, Simulink Design Verifier User's Guide, Chapter 12,
Thu4/1024-Assignment 2b due
41 Mon5/1008-10IT5TUTORIAL: Requirements, Monitorstesting-exercises-1.pdf, testing-exercises-2.pdf, Simulink Design Verifier User's Guide, p 12-43 - 12-47
Tue6/1008-10IT5Capacity of Simulink Design Verifiertesting2.pdf,testing-exercises-3.pdf -->
Wed7/1015-17IT5Continuation: Simulink Design Verifiertesting3.pdf
Fri9/1010-12IT5Feedback, Assignment 2b
Fri9/1013-15IT5Models of Computation, Dataflowmoc.pdf
Module 4: Other formalisms
42 Wed14/108-10IT5Lecture LUSTRE (Philipp Rümmer)lustre1-expanded.pdf, examples_2020-10-14.lus
Thu15/1013-15IT5Q and A on Requirements/Assignment 3
Wed18/1024-Assignment 3 due
43 Wed21/1024-Project reports due
Fri23/108-12IT5PROJECT PRESENTATIONS
Fri23/1013-17IT5Lustre Lab
  • Useful Material The "Material" referenced in the Schedule is posted in Studentportalen, or linked. Other material that can be useful is below.

    Additional Resources

    Here are some links to relevant resources: Courses, lectures that cover similar and related topics (the list will be extended)

    Teaching staff