Scheduling Approaches For Real-Time Tasks in Software Hardware Co-Design Paradigm
Scheduling Approaches For Real-Time Tasks in Software Hardware Co-Design Paradigm
Connect 2023
Organised By: IEEE Bangalore Section
Introduction
• Embedded systems are computing systems with tightly coupled hardware and
software integration.
• Designed to perform dedicated function
• Real-time embedded systems are defined as those systems in which the
correctness of the system depends not only on the logical result of computation,
but also on the time at which the results are produced.
Example:
Airbag sensory system in Automobiles
RTS RTEMB EMB “--- this thing will probably have to work
only once in 10 years, but it better work
then, otherwise you might die.”
FPGA Basics
• The term FPGA stands for Field Programmable
Gate Array and, it is a one type of
semiconductor logic chip which can be
programmed (fully and partially) to become
almost any kind of system or digital circuit
• The general FPGA architecture consists of three
types of modules
• Configurable logic blocks (CLB)
• Switch Matrix/ Interconnection Wires
• I/O blocks or Pads
• The ability to configure the FPGA’s CLBs into
hundreds or thousands of identical processing
blocks has applications in image processing,
artificial intelligence (AI), data center hardware
accelerators
?
Flexibility
Performance
FPGA SoCs as Hardware Task Processing Engines
• All timing constraints should be met while taking care of the reconfiguration overheads and also allowing
efficient resource utilization
Slotted 1D Flexible 1D
Slotted 2D Flexible 2D
Scheduling Periodic Hard Real-Time
Task Sets on Fully and Partially
Reconfigurable Platforms
Assumptions
Processing elements Identity: The reconfigurable platform is assumed to be equipartitioned into
m homogeneous tiles
DPSFR
DPSFR: TRR Vs WL
DPSFR can achieve fair resource utilization up to 80% with TRR less than 10% and DPSPR can utilize resource
up-to 90% with 1%TRR [Published in IEEE ESL, Vol 7, Page: 23-26]
Co-scheduling Persistent Periodic and
Dynamic Aperiodic
Real-Time Tasks on Reconfigurable
Platforms
Introduction
• Scheduling for a set of safety critical persistent periodic tasks along with
less critical dynamic aperiodic tasks
• Guarantee the execution of all critical periodic tasks and execute arbitrarily
arriving aperiodic tasks utilizing residual system capacity
• Follows Offline Online approach.
• Offline- generate periodic schedule and maintain free resource.
• Online- Utilize that resource to schedule aperiodic tasks.
• DPCS-FR (Deadline Partitioning Combined Scheduler for Fully
Reconfigurable Systems)
• DPCS-PR (Deadline Partitioning Combined Scheduler for Partially
Reconfigurable Systems)
Data Structure for DPCS-FR Offline
• The information stored corresponding to
the rth node Stsr of the circular linked
list is as follows:
• 1. Time-slice length: tslr
• 2. Each node schir in SCH contain the
following information:
• Number of frames per tile: Cir
• Frame size: Gir
• # of free frames: FFir
• #frames needed for each task
Tj P: PRFi,jr
• Link to next node SLir
• 3. Start time of the time-slice: t r
CLLS • 4. Pointer to next node: Linkr
Example:
• Considering a run-time partially reconfigurable scenario, let us again take the same 4-tile
platform. The hypothetical FPGA under consideration has a full reconfiguration overhead
of tfrg = 6 ms and partial reconfiguration overhead tprg = 2 ms (6/4 ~ 2 ms).
• The shares to be executed within this time slice is shr 1= shr3= shr5= 8 and shr2= shr4= 12 and
sum_shr= 96
• Ta1 arrives at 60, with ea1=13, da1=83 and Ta2 arrives at 67 with ea2=12, da2=81.
Slack in ts2
After allocation of aperiodic task
Experimental Results (Contd..)
DAG
Challenges
• Tasks must be managed efficiently in time and space to exploit the advantages
offered by the FPGA
• To achieve the objective the scheduler must be able to handle all the following
requests:
what task to load at what time (temporal reconfiguration) ?
where to place the task (spatial reconfiguration) ?
when to start the execution of a task according with its precedence constraints
(temporal scheduling) ?
ILP based Formulation
• Objectives: Minimize the Total Schedule Length
• Constraints:
Each task has an unique loading time through ICAP Port
Each task has an unique start time after loading in FPGAs
All tasks have to be loaded before it can start its execution
All loaded tasks (executing or non-executing) consumed an area in the floor of the FPGA
Task dependency constraints must be satisfied
The ICAP port can load at most one task at any given time
• We have formulated the ILP version of the problem and solved it. As per the
outcome of the ILP solution obtained in offline, our task graphs will be scheduled
on that way in online
Scheduling and Placement of
Dependent Hardware Tasks on
Partially Reconfigurable Systems
28
Tasks with Multiple Versions
30
Example: ALAP Schedule
31
Application Use Cases
Energy-aware application management strategy for FPGA-based IoT-
Cloud environments
• Publications:
• Atanu Majumder, Sangeet Saha, Amlan
Chakrabarti, Klaus D. McDonald-Maier: Energy-
Aware Real-Time Tasks Processing for FPGA-
Based Heterogeneous Cloud. IEEE Trans.
Sustain. Comput. 7(2): 414-426 (2022).
33
High Speed Fault tolerant System Design
for High Energy Physics Applications
• Publications:
• S Mandal, J Saini, WM Zabołotny, S Sau, A
Chakrabarti, S Chattopadhyay: An FPGA-Based
High-Speed Error Resilient Data Aggregation and
Control for High Energy Physics Experiment.
IEEE Transactions on Nuclear Science 64 (3),
933-944(2017).
34
Energy Efficient Scheduling of Real-Time Tasks in Heterogeneous
Multi-core Systems and Cloud
• Publications:
• Kalyan Baital and Amlan Chakrabarti, “Dynamic Scheduling of Tasks for Multi-core
Real Time Systems based on Optimum Energy and Throughput”, IET Computers &
Digital Techniques, Vol.13, No.2, pp.93-100, 2019.
• Kalyan Baital and Amlan Chakrabarti, "An Efficient Dynamic Scheduling of Tasks for
Multi-core Real Time Systems", Advances in Computing Applications, Springer,pp.
31 - 47, 2016.
• Kalyan Baital, Amlan Chakrabarti, B. Chatterjee, S. Holst and X. Wen, “Power and
Energy Safe Real-Time Multi-core Task Scheduling”, in Proc. 35th Intl Conf on VLSI
Design and 21st Intl Conf on Emb. Sys. (VLSID), Bangalore, India, 2022, pp. 16-21.
Error Resilient SRAM-Based
Reconfigurable Computing Platform
• Publications:
• Swagata Mandal; Amlan Chakrabarti; Srinivasu
Bodapati: Clustered Error Resilient SRAM-Based
Reconfigurable Computing Platform. IEEE trans.
on aerospace and electronic system, 57(3): 1768 –
1779(2021).
• S Mandal, R Paul, S Sau, A Chakrabarti, S
Chattopadhyay: A novel method for soft error
mitigation in FPGA using modified matrix code.
IEEE Embedded Systems Letters 8 (4), 65-
68(2016)
• S Mandal, R Paul, S Sau, A Chakrabarti, S
Chattopadhyay: Efficient dynamic priority based
soft error mitigation techniques for configuration
memory of FPGA hardware. Microprocessors and
Microsystems 51, 313-330(2017).
36
Detection of unknown cipher using fault
injection techniques
Publication:
Arijit Tewary, Swagata Mandal, Amlan Chakrabarti, Debasri Saha, and Avishek Adhikari: Differential Fault Analysis of Trivium Using
Artificial Neural Network on SoC Platform, 5 th International symposium on Devices, Circuit and systems , 2022. 37
Self-aware Embedded Hardware Design using FPGAs for mitigating threats like Hardware Trojans,
Side-Channel, Fake IPs
Main Focus: Development of Self Aware Hardware Agents for Runtime Security
Key Contributions: Publications:
• Development of Security Algorithms based on the security activities exhibited by different species of nature • Krishnendu Guha, Atanu Majumder, Debasri Saha, Amlan Chakrabarti :
Criticality based reliability against hardware Trojan attacks for processing of
• Development of Self Aware Agents (SAAs) that works based on the Observe-Decide-Act (ODA) paradigm tasks on reconfigurable hardware. Microprocess. Microsystems 71 (2019)
that: • Krishnendu Guha , Debasri Saha, Amlan Chakrabarti :
Stigmergy-Based Security for SoC Operations From Runtime Performance
• Bypasses Confidentiality Attacks in SoC platforms Degradation of SoC Components. ACM Trans. Embed. Comput. Syst. 18(2)
• Counteracts Integrity Attacks for in SoC platforms : 14:1-14:26 (2019)
• Krishnendu Guha , Debasri Saha, Amlan Chakrabarti :
• Mitigates Availability Attacks in SoC platforms
Real-Time SoC Security against Passive Threats Using Crypsis Behavior of
• Authenticates reconfigurable intellectual properties in remote FPGA platforms Geckos. ACM J. Emerg. Technol. Comput. Syst. 13(3): 41:1-41:26 (2017)
• Krishnendu Guha, Debasri Saha, Amlan Chakrabarti :
Zero Knowledge Authentication for Reuse of IPs in Reconfigurable
Platforms. TENCON 2019: 2040-2045
• Krishnendu Guha , Atanu Majumder, Debasri Saha, Amlan Chakrabarti
:
Reliability Driven Mixed Critical Tasks Processing on FPGAs Against
Hardware Trojan Attacks. DSD 2018: 537-544
• Krishnendu Guha , Debasri Saha , Amlan Chakrabarti :
SARP: Self Aware Runtime Protection Against Integrity Attacks of Hardware
Trojans. VDAT 2018: 198-209
• Krishnendu Guha , Sangeet Saha, Amlan Chakrabarti :
SHIRT (Self Healing Intelligent Real Time) Scheduling for Secure
Embedded Task Processing. VLSID 2018: 463-464
• Krishnendu Guha , Debasri Saha, Amlan Chakrabarti :
Self Aware SoC Security to Counteract Delay Inducing Hardware Trojans at
Runtime. VLSID 2017: 417-422
• Krishnendu Guha , Debasri Saha, Amlan Chakrabarti :
RTNA: Securing SOC architectures from confidentiality attacks at runtime
using ART1 neural networks. VDAT 2015: 1-6
• Krishnendu Guha , Romio Rosan Sahani, Moumita Chakraborty, Amlan
Chakrabarti , Debasri Saha:
Analysis of Secret Key Revealing Trojan Using Path Delay Analysis for Some
Cryptocores. FICTA (2) 2014: 13-20
Self-Aware Strategies for FPGAs on Cloud
Key Focus: Develop Security based Scheduling Approaches via Self Aware Runtime Agents
Publications:
Key Contributions • Krishnendu Guha, Atanu Majumder, Debasri Saha,
• Analyse threats to real time tasks for FPGA based Cloud Platforms Amlan Chakrabarti:
Dynamic power-aware scheduling of real-time tasks for
• Develop criticality based reliability security based scheduling at runtime FPGA-based cyber physical systems against power
draining hardware trojan attacks. J. Supercomput. 76(11)
: 8972-9009 (2020)
• Krishnendu Guha, Amlan Chakrabarti:
Criticality based Reliability from Rowhammer Attacks in
Multi-User-Multi-FPGA Platform. VLSID 2022: 234-239
• Krishnendu Guha, Amlan Chakrabarti, Krishna Paul,
Biswadeep Chatterjee:
Criticality based Reduction of Security Costs in a FPGA
based Cloud Computing Farm. VLSID 2021: 264-269
• Krishnendu Guha, Debasri Saha, Amlan Chakrabarti:
Blockchain Technology Enabled Pay Per Use Licensing
Approach for Hardware IPs. DATE 2020: 1618-1621
• Krishnendu Guha, Atanu Majumder, Debasri Saha,
Amlan Chakrabarti:
Ensuring Green Computing in Reconfigurable Hardware
based Cloud Platforms from Hardware Trojan Attacks.
TENCON 2020: 1380-1385
• Krishnendu Guha, Debasri Saha, Amlan Chakrabarti:
A Multi-Agent Co-operative Model to Facilitate
Criticality based Reliability for Mixed Critical Task
Execution on FPGA based Cloud Environment.
VLSID 2020: 143-148
New Domains
Test-Aware Scheduling of Real-Time Tasks in Multi-core Systems
• Communicated:
• K. Baital, B. Chatterjee, A. Chakrabarti, S. Holst and X. Wen,
“QoS Peserving Test-Aware Scheduling of Real-Time Tasks in
Multicore Systems”.
Embedded and Cyber-physical Systems Group
Architecture of Multi-Sensor Fusion used in agriculture Heartbeat classification using two-stage RF classifier
42
Embedded and Cyber-physical Systems Group
Collaborators:
Dr. Krishnendu Guha Prof. Juergen Becker Dr. Arnab Sarkar, Assoc. Prof. Mr. Biswadeep Chatterjee Prof. Xiaoqing Wen
Asst. Prof. Univ. of Cork, Ireland Head of the Institute ITIV, KIT, IIT Kharagpur Associate V.P. HCLTech KyuTech.,Japan
Germany
08/17/2023 46