IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v10y2022i15p2637-d873417.html
   My bibliography  Save this article

Designing a Custom CPU Architecture Based on Hardware RTOS and Dynamic Preemptive Scheduler

Author

Listed:
  • Ionel Zagan

    (Faculty of Electrical Engineering and Computer Science, Stefan cel Mare University, 720229 Suceava, Romania
    Integrated Center for Research, Development and Innovation in Advanced Materials, Nanotechnologies, and Distributed Systems for Fabrication and Control (MANSiD), Stefan cel Mare University, 720229 Suceava, Romania)

  • Vasile Gheorghiță Găitan

    (Faculty of Electrical Engineering and Computer Science, Stefan cel Mare University, 720229 Suceava, Romania
    Integrated Center for Research, Development and Innovation in Advanced Materials, Nanotechnologies, and Distributed Systems for Fabrication and Control (MANSiD), Stefan cel Mare University, 720229 Suceava, Romania)

Abstract

The current trend in real-time operating systems involves executing many tasks using a limited hardware platform. Thus, a single processor system has to execute multiple tasks with different priorities in different real-time system (RTS) work modes. Hardware schedulers can greatly reduce event trigger latency and successfully remove most of the scheduling overhead, providing more computing cycles for applications. In this paper, we present a hardware-accelerated RTOS based on the replication of resources such as program counters, general purpose registers (GPRs) and pipeline registers. The implementation of this new concept, based on real-time event handling implemented in hardware, is intended to meet the current rigorous requirements imposed by critical real-time systems. The most important attribute of this FPGA implementation is the time required for task context switching, which is only one clock cycle or three clock cycles when working with the atomic instructions used in the case of inter-task synchronization and communication mechanisms. The main contribution of this article is its focus on mutexes and the speed of response associated with related events. Thus, fast switching between threads is also validated, considering the handling of events in the hardware using HW_nMPRA_RTOS (HW-RTOS). The proposed architecture implements inter-task synchronization and communication mechanisms with high performance, improving the overall response time when the mutex or message is expected to relate to a higher-priority task.

Suggested Citation

  • Ionel Zagan & Vasile Gheorghiță Găitan, 2022. "Designing a Custom CPU Architecture Based on Hardware RTOS and Dynamic Preemptive Scheduler," Mathematics, MDPI, vol. 10(15), pages 1-17, July.
  • Handle: RePEc:gam:jmathe:v:10:y:2022:i:15:p:2637-:d:873417
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/10/15/2637/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/10/15/2637/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:10:y:2022:i:15:p:2637-:d:873417. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.