Introduction
Modern reconfigurable computing, particularly with FPGAs, allows for "partial reconfiguration"—the ability to swap hardware modules dynamically without interrupting the entire system. However, this flexibility introduces significant management overhead. This paper presents an optimal $O(n \log n)$ algorithmic framework for free-space management and module placement, utilizing computational geometry to minimize communication overhead and fragmentation.
The Challenge of Dynamic Reconfiguration
As modules are added and removed from an FPGA, the available surface area becomes fragmented. A hardware "Operating System" must handle two primary tasks:
- Free-Space Management (FSM): Efficiently identifying all valid locations for a new rectangular module.
- Routing-Conscious Placement: Placing modules to minimize the "weighted Manhattan distance" to their communication partners, reducing power and latency.
Previous approaches often relied on $O(n^2)$ searches or heuristics that could fail to find valid placements even when they existed.
Algorithmic Framework: Geometric Transformation
The core innovation lies in treating placement as a geometric problem. The authors employ a Geometric Transformation (Minkowski-style expansion): they "blow up" existing modules by half the dimensions of the new module while shrinking the chip's boundaries. This reduces the complex task of fitting a rectangle into a hole to the simpler task of finding a single feasible point within the remaining free space.
To manage this space efficiently, the authors use:
- Plane-Sweep & Segment Trees: A vertical line sweeps across the chip, using a segment tree to track occupied vertical slices. This identifies the contour of feasible placement areas in $O(n \log n)$ time.
- Linear Complexity Proof: The authors prove that for expanded disjoint rectangles, the contour complexity remains linear ($O(n)$), ensuring the algorithm's efficiency.
Routing-Conscious Placement
Once the feasible region is defined, the "Placer" must find the optimal point for routing. In an unconstrained 2D space, the optimal location is the weighted median of all connection points. In the constrained FPGA environment, the authors demonstrate that the optimal feasible point must lie on the intersection of the median axes and the free-space contour, or at specific vertices of that contour. This allows the placer to focus on a small set of candidate points rather than searching the entire chip.
Experimental Results
The Routing-Conscious Placement (RCP) algorithm was evaluated against standard heuristics (NAO and KFF) using simulated FPGA workloads with 100 modules and varying lifetimes.
- Performance: RCP averaged ~170ms per 100 modules, outperforming previous heuristics.
- Routing Efficiency: RCP achieved routing costs 3x to 10x lower than non-routing-aware methods.
- Placement Quality: The rejection rate remained low (approx. 3.6%), matching the best existing methods while significantly improving placement quality.
Conclusion
By bridging the gap between computational geometry and hardware management, this research provides a theoretically optimal and practically superior framework for dynamic FPGA reconfiguration. Future work may extend this to "offline" multi-module placement or incorporate geodesic Manhattan distances to account for routing around existing hardware obstacles.
Summary updated