FOS: A Modular FPGA Operating System for Dynamic Workloads

Anuj Vaishnav, Khoa Dang Pham, Joseph Powell, Dirk Koch

Introduction

Field-Programmable Gate Arrays (FPGAs) offer significant performance and energy efficiency advantages for specialized workloads. However, their adoption in dynamic environments like cloud computing has been hindered by a "brittle" development and deployment model. Traditionally, FPGAs are treated as monolithic, static devices where a single change in the system stack necessitates a full, time-consuming recompilation. This paper presents FOS (FPGA Operating System), a modular framework designed to bring software-like agility and multi-tenancy to FPGA acceleration.

The Challenge: The "Ripple Effect" in FPGA Development

In standard FPGA development flows, hardware components are tightly coupled. If a developer updates a driver, changes an EDA tool version, or modifies a piece of system IP, it often triggers a "ripple effect." This requires the entire hardware stack to be re-synthesized and re-compiled, a process that can take several hours.

Traditional vs. Modular FPGA Development Flow

Beyond development friction, current systems typically support only one accelerator for one user at a time. This leads to significant resource under-utilization; if a specific task only requires a fraction of the FPGA's logic, the remaining silicon remains idle. FOS addresses these issues by decoupling the accelerator logic from the underlying system "shell."

FOS Architecture and Methodology

FOS achieves modularity and hardware-level multi-tenancy through four primary architectural pillars:

  1. Decoupled Compilation Flow: FOS allows accelerators to be compiled in isolation against fixed physical interfaces. By standardizing these boundaries, an accelerator bitstream remains valid even if the underlying system shell is updated, eliminating the need for full-stack recompilation.
  2. Logical Hardware Abstraction: To simplify the software-hardware interface, FOS replaces low-level register maps with JSON-based descriptors. These descriptors allow the software runtime to automatically discover and interact with hardware modules, removing the need for manual driver development for every new accelerator.
  3. Resource-Elastic Scheduling: FOS implements a software daemon that utilizes gRPC for communication. This daemon manages a queue of user requests and can dynamically scale resources. It supports both spatial scaling (replicating modules across the chip) and temporal multiplexing (swapping modules over time) based on real-time demand.
  4. Runtime Bitstream Manipulation: Utilizing a specialized tool called BitMan, FOS can relocate partial bitstreams to different physical "slots" on the FPGA at runtime. This capability is essential for true hardware multi-tenancy, allowing the OS to pack multiple independent accelerators onto a single chip.

Experimental Evaluation

The FOS framework was evaluated using the Spector Benchmark Suite (including AES, DCT, and FIR filters) and custom accelerators like Mandelbrot and Sobel filters. Testing was conducted across three Xilinx-based platforms: the high-capacity ZCU102 and the edge-focused UltraZed and Ultra-96 boards.

Key Results

  • Compilation Efficiency: FOS demonstrated a 1.74x to 2.34x speedup in compilation time compared to standard Xilinx Partial Reconfiguration flows when targeting multiple regions.
  • Dynamic Scaling and Throughput: In multi-tenant tests, FOS improved system throughput by 46% by dynamically reallocating resources—for instance, automatically increasing the number of Mandelbrot instances when demand spiked.
  • Operational Overhead: On larger devices like the ZCU102, the FOS shell consumes only ~11-13% of logic resources, a negligible trade-off for the flexibility provided. Furthermore, swapping an accelerator via FOS takes only 3.8ms to 6.7ms, compared to the minutes or hours required by traditional methods.

Discussion and Future Work

While FOS significantly improves FPGA flexibility, limitations remain. On smaller devices like the Ultra-96, the shell can consume up to 80% of resources, leaving little room for user logic. Additionally, memory bandwidth bottlenecks can occur when multiple accelerators compete for the same controller. Future research will focus on porting FOS to other vendor architectures (e.g., Intel/Altera) and developing more sophisticated, power-aware scheduling algorithms.

Conclusion

FOS transforms the FPGA from a static co-processor into a dynamic, manageable resource. By abstracting hardware complexity and enabling modular development, FOS paves the way for "Hardware-as-a-Service," allowing developers to deploy and scale accelerators with the same ease as software microservices.

Summary updated

BibTeX
@article{vaishnav2020fos,
  author = {Anuj Vaishnav and Khoa Dang Pham and Joseph Powell and Dirk Koch},
  title = {{FOS: A Modular FPGA Operating System for Dynamic Workloads}},
  journal = {ACM Trans. Reconfigurable Technol. Syst.},
  year = {2020},
  doi = {10.1145/3405794},
}
Figure