T126 : Worst Case Execution Time Prediction for Sancus/MSP430

Supervision:
Contact person: Frank Piessens Tobias Mühlberg Jo Van Bulck
Supervisor(s): Frank Piessens
Daily advisor(s): Tobias Mühlberg Jo Van Bulck
Research group:
Distributed Software & Software Security
Context:

Worst case execution time is typically used in reliable
real-time systems, where understanding the worst case timing behaviour of
software is important for reliability or correct functional behaviour.
Consider an embedded microcontroller that controls the behaviour of an
engine, opening and closing valves in response to sensor readings.  These
readings and actions have to be taken within a specific amount of time so
as to guarantee that the engine keeps running, and the time spent executing
the control software makes up an important fraction of the response time.
Thus, if the software worst case execution time can be determined, then the
designer of the system can use this to ensure that the system responds fast
enough.

There is a number of manual and automated approaches to calculating the
worst case execution time of a program. We are mostly interested in
automated analysis techniques, which include analytical approaches to
improve test cases so as to increase confidence in end to end measurements,
static analysis of the software ("static" meaning without executing the
software), as well as combined approaches, often referred to as "hybrid"
analysis, which involve a combination of measurements and structural
analysis.

Aim:

This thesis aims at implementing an automated analysis that
determines such worst case execution times for machine code for the TI
MSP430 CPU with Sancus extensions. The MSP430 is a 16-bit, low-power,
mixed-signal CPU with smart analog and digital peripherals for a wide range
of industrial and consumer applications. While the processor core features
very predictable execution times and does not use caching or pipelining,
the Sancus extensions developed at iMinds-DistriNet incur variable
execution times and certainly need special consideration.

Possible research questions:
  • What previous work on WCET analysis would be most suitable for different
      functional units on the MSP430, e.g., interrupt service routines,
      scheduling components or general application code?
  • Can the Sancus specific instructions be handled by existing approaches to
      WCET analysis?
  • Would it be advisable to modify the behaviour of the Sancus specific
      instructions, e.g., make them interruptible or assign them fixed execution
      times, to achieve better prediction results or stronger real-time
      guarantees?
Approach:

Students embracing this task will study literature on static
WCET analysis, investigating available tools or re-implementing previously
published approaches for the MSP430 architecture. This should then be
extended to cover the Sancus primitives. A number of example programs for
the MSP430 and for Sancus are available and can be instrumented as test
cases for this project.

Relevant literature:
  • Noorman et al.: Sancus: Low-cost trustworthy extensible networked
      devices with a zero-software Trusted Computing Base, USENIX Security 2013
  • Heckmann and Ferdinand, Worst-case execution time prediction by static
      program analysis, IEEE IPDPS 2004
  • Burns, Alan, and Andrew J. Wellings. Real-time systems and programming
      languages: Ada 95, Real-Time Java, and Real-Time POSIX. Pearson
      Education, 2001
Student profile:

You should be able to familiarise yourself with the
MSP430 and the internals of Sancus, which requires solid background
knowledge in computer architecture and the programming language C.

This topic is for 1 student(s).

This topic can be selected by

  • all Master in de Ingenieurswetenschappen: Computerwetenschappen (ir) students
  • all Master of Engineering: Computer Science students
  • all Master Toegepaste Informatica (toeinf) students

Clusters, in which this topic appears:
  • Secure Software
  • Theoretical Computer Science
  • Distributed Software
18-07-2008