Abstract
Swapping just small fractions of the configuration of an FPGA can be very beneficial in many applications. This is in particular useful for reconfiguring the instruction set of embedded soft core processors. In this paper, we will sketch that present design techniques include a substantial overhead for integrating reconfigurable parts into the rest of the system. This overhead can cost more logic resources than the actual module implementations. For removing this overhead, we propose a novel technique to constrain the communication resources between the static system and the partial regions. We will demonstrate for a reconfigurable soft core processor that instructions can be integrated into the system without causing any additional logic overhead for the communication. In addition, we reveal how such systems can be easily implemented with our tool ReCoBus-Builder. Furthermore, we will analyze the overhead in terms of reconfiguration time and present a metric helping to take design decisions.
The Problem: The "PR Tax" on Fine-Grained Logic
Field Programmable Gate Arrays (FPGAs) support Partial Reconfiguration (PR), allowing designers to swap hardware modules on the fly while the rest of the system remains operational. This capability is ideal for softcore CPUs, where specialized instructions (e.g., cryptographic hashes or complex filters) can be loaded into the pipeline only when needed.
However, traditional PR design flows impose a significant resource overhead. To ensure that a newly loaded module connects correctly to the static system, designers have historically used "bus macros" or "proxy logic" to act as fixed communication anchors. For small modules, such as a single custom CPU instruction, these anchors can consume more Look-Up Tables (LUTs) and introduce more latency than the instruction logic itself. This overhead makes fine-grained hardware acceleration inefficient.
Proposed Method: Routing-Based Constraints
The authors propose a paradigm shift from logic-based constraints to routing-based constraints. Instead of placing physical LUTs to bridge signals, they developed a technique using "blocker macros."
Blocker Macros and ReCoBus-Builder
Blocker macros are essentially "routing traffic cones." They occupy all available routing resources in a specific FPGA region except for the exact wires intended for the communication link. This forces the FPGA router to use the desired paths without requiring any additional logic gates. This technique was integrated into the ReCoBus-Builder tool, which automates the generation of these blockers and manages the floorplanning of reconfigurable "slots."
Interleaved Routing and Relocatability
To enhance flexibility, the architecture utilizes "double lines" (wires spanning two logic blocks) and interleaved signals. This ensures that operands can be accessed correctly regardless of whether a module is placed in an even or odd slot, allowing a single pre-compiled bitstream to be relocated across multiple positions on the FPGA fabric.
Experimental Evaluation
The system was benchmarked on a Xilinx Virtex-II FPGA using a suite of custom instruction set extensions, including:
- 64-bit XOR gates
- CCITT CRC (Cyclic Redundancy Check)
- Saturated Add/Sub
- Barrel Shifter
- Population Count ('1' bit counter)
- Mask & Permute operations
Key Results and Insights
- Zero Logic Overhead: The communication interface required 0 additional LUTs, compared to previous methods that required one or two LUTs per bit signal.
- Area Savings: The proposed method achieved an 18% reduction in total resource usage (and a 9% saving in logic specifically) over the standard Xilinx proxy logic approach.
- Reconfiguration Efficiency: A single instruction slot could be reconfigured in approximately 0.6 ms.
- The Breakeven Factor ($k$): The authors introduced a metric to determine when reconfiguration is beneficial. For a complex CRC instruction, the "breakeven point" was found to be fewer than 300 calls; if the program uses the instruction more than 300 times, the hardware acceleration outweighs the reconfiguration latency.
Limitations and Future Work
While highly effective, the current implementation is closely tied to the architecture of Xilinx Virtex-II and Spartan-3 devices. Porting the blocker macro generation to modern architectures like UltraScale+ would require significant adjustments to handle different wire types. Future research will explore DMA-based reconfiguration to further minimize CPU involvement and increase automation in the design flow.
Reference: Koch, D., Beckhoff, C., & Torresen, J. (2011). Efficient Interfacing of Partially Reconfigurable Instruction Set Extensions for Softcore CPUs on FPGAs. Journal of Integrated Circuits and Systems, 6(1), 35-42.
Summary updated