Skip to main navigation Skip to search Skip to main content

Hardware Solutions for Eliminating Context Switching Latency in Processor-Based Hard Real-Time Systems

Research output: Chapter in Book/Report/Conference proceedingConference contributionScientificpeer-review

2 Citations (Scopus)
27 Downloads (Pure)

Abstract

Processor systems in control-oriented applications, such as safety-critical real-time systems, rely on low-latency context switching to service multiple tasks in a concurrent yet timely fashion. Conventional microcontroller systems rely on software-based storing and restoring of the active program context, while some microcontrollers have been optimized to accelerate the stacking of the context with custom hardware. However, these solutions do not address the fundamentally sequential nature of context saving. This publication presents a novel approach to parallelizing context saving and restoring by developing a parallel context stack. We integrate the solution into an existing open-source RISC-V processor and microcontroller platform and demonstrate the effective elimination of the context switch latency from the total interrupt latency. The design is synthesized with a commercial application-specific integrated circuit (ASIC) flow, using an open 45 nm technology library, and achieves a maximal frequency estimate of 500 MHz. The presented solution achieves a best-in-class total interrupt latency of 4 clock cycles, without increasing the critical path delay of the processor. We present a comparison of existing hardware mechanisms for context switching and an argument for improved safety and predictability with isolated context saving.
Original languageEnglish
Title of host publication2024 IEEE Nordic Circuits and Systems Conference (NorCAS)
PublisherIEEE
ISBN (Electronic)979-8-3315-1766-3
DOIs
Publication statusPublished - 2024
Publication typeA4 Article in conference proceedings
EventIEEE Nordic Circuits and Systems Conference - Lund, Sweden
Duration: 29 Oct 202430 Oct 2024

Conference

ConferenceIEEE Nordic Circuits and Systems Conference
Country/TerritorySweden
CityLund
Period29/10/2430/10/24

Publication forum classification

  • Publication forum level 1

Fingerprint

Dive into the research topics of 'Hardware Solutions for Eliminating Context Switching Latency in Processor-Based Hard Real-Time Systems'. Together they form a unique fingerprint.

Cite this