Giter Site home page Giter Site logo

franklinqin0 / multi-rate-dag Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mive93/multi-rate-dag

0.0 1.0 0.0 189 KB

Code for the paper "Latency-Aware Generation of Single-Rate DAGs from Multi-Rate Task Sets" (RTAS 2020)

License: GNU General Public License v2.0

CMake 1.03% C++ 98.97%

multi-rate-dag's Introduction

Latency-Aware Generation of Single-Rate DAGs from Multi-Rate Task Sets

This is the official repository for the paper "Latency-Aware Generation of Single-Rate DAGs from Multi-Rate Task Sets", by Micaela Verucchi, Mirco Theile, Marco Caccamo and Marko Bertogna (in proceeding RTAS 2020).
Contact: Micaela Verucchi, [email protected].

Abstract

This is an implementation of a conversion from a multi-rate DAG to a single rate DAG that meet given requirements on scheduling and end-to-end latency.

Input

The input is a task set equation, modeling an application composed of N periodic tasks equation arriving at time t=0. Each task equation is described by the tuple equation, where:

  • equation is the Worst Case Execution Time (WCET) of the task;
  • equation is the Best Case Execution Time (BCET);
  • equation is the period;
  • equation represents the relative deadline.

The exchange of data between two tasks is modeled with as data edge, a directed edge between the producer and the consumer of the data.

To constrain the latency of data propagation in task-chains, upper bounds on data age and on reaction time can be given, as well as maximum number of cores available.

Output

The output is a single-rate Directed Acyclic Graph (DAG). In this model, the full application is represented as directed acyclic graphs, with a unique source vertex and a unique sink vertex. Each vertex represents a task instance (job), while edges represent precedence constraints between jobs. In detail, the DAG is specified by a 3-tuple (V,E,HP) where:

  • V represents the set of nodes, namely the jobs of the tasks of equation, and n = |V|;
  • E is the set of edges describing job-level precedence constraints;
  • HP is the period of the DAG, namely the hyper-period of the tasks involved: equation.

In this model, the communication between jobs utilizes buffers in shared memory, which can be accessed by all the cores. The time to write/read a shared buffer is included in the execution time of each task. We adopt the implicit communication model defined in AUTOSAR, solving mutual exclusion via double-buffering. Each task complies with a read-execute-write semantic, i.e., it reads a private copy before the execution, and it writes a private copy at the end of the execution

How to build the project

git clone https://github.com/mive93/multi-rate-DAG
cd multi-rate-DAG
mkdir build
cd build
cmake ../src
./main

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.