Efficient and Predictable Context Switching for Mixed-Criticality and Real-Time Systems

Research output: Contribution to journalArticleScientificpeer-review

1 Citation (Scopus)
2 Downloads (Pure)

Abstract

Context switching is both a highly utilized and highly repetitive routine in interrupt-driven systems, such as safety-critical control systems. Conventional context switching routines are sequential and dependent on data memory access, which may be detrimental to time-predictability. This publication explores the use of stacked register files for efficient and predictable context switching. Two complementary microarchitectures are characterized: combinationally addressed register windowing, and a novel parallel context stack (PCS). Both implementations enable minimal latency and inherent predictability in context switching. To efficiently utilize the benefit of stacked register files while limiting hardware costs, the heterogeneous interrupt (HETI) architecture is proposed. HETI integrates a small stacked register file for accelerating a dynamically selected subset of high-priority interrupts. Automatic firmware generation is contributed to enable seamless utilization of the HETI architecture. A total of four HETI configurations on an open-source RISC-V microcontroller are evaluated against the baseline platform and an implementation of Cortex-M style hardware-assisted stacking. Implementations on a TSMC 22nm technology demonstrate low area overhead for small HETI configurations and favorable frequency characteristics against the hardware-assisted stacking implementation. A representative layout of the full system with a HETI-4 instance is presented with a gate count overhead of 1.2% and no frequency detriment in relation to the baseline design. The functional performance evaluated in a synthetic case study demonstrates how the HETI design can reduce retired instruction count by up to 26% and allow for 21% more sleep in comparison to the software baseline and Cortex-M style solution, promising significant improvements to real-time response and energy efficiency.

Original languageEnglish
Article number2907-2915
JournalIEEE Transactions on Very Large Scale Integration (VLSI) Systems
Volume33
Issue number11
Early online date2025
DOIs
Publication statusPublished - Nov 2025
Publication typeA1 Journal article-refereed

Keywords

  • Context switch
  • interrupt latency
  • mixed criticality
  • predictable computing
  • real-time systems
  • RISC-V

Publication forum classification

  • Publication forum level 2

ASJC Scopus subject areas

  • Software
  • Hardware and Architecture
  • Electrical and Electronic Engineering

Fingerprint

Dive into the research topics of 'Efficient and Predictable Context Switching for Mixed-Criticality and Real-Time Systems'. Together they form a unique fingerprint.

Cite this