[Paper Review] Defragmenting the Module Layout of a Partially Reconfigurable Device
This paper proposes a hybrid online-offline defragmentation approach for partially reconfigurable FPGAs to mitigate space fragmentation caused by dynamic module loading and unloading. By modeling the problem as a two-dimensional strip packing problem and using a graph-theoretic exact algorithm, the method optimally reorganizes module layouts during idle periods, significantly increasing the size of the largest free rectangle and the number of free columns—achieving up to a 3.1× improvement in maximal free rectangle area and a 4.2× average increase in free columns.
Modern generations of field-programmable gate arrays (FPGAs) allow for partial reconfiguration. In an online context, where the sequence of modules to be loaded on the FPGA is unknown beforehand, repeated insertion and deletion of modules leads to progressive fragmentation of the available space, making defragmentation an important issue. We address this problem by propose an online and an offline component for the defragmentation of the available space. We consider defragmenting the module layout on a reconfigurable device. This corresponds to solving a two-dimensional strip packing problem. Problems of this type are NP-hard in the strong sense, and previous algorithmic results are rather limited. Based on a graph-theoretic characterization of feasible packings, we develop a method that can solve two-dimensional defragmentation instances of practical size to optimality. Our approach is validated for a set of benchmark instances.
Motivation & Objective
- To address space fragmentation in partially reconfigurable FPGAs caused by repeated module insertion and deletion.
- To improve the efficiency of online module placement by enabling offline defragmentation during idle times.
- To maximize both the size of the largest contiguous free rectangle and the number of free columns for column-wise reconfiguration.
- To provide an exact solution to the NP-hard two-dimensional strip packing problem in practical FPGA layout scenarios.
Proposed method
- Models the FPGA as a grid of configurable logic blocks (CLBs) organized in W columns and H rows, with reconfiguration restricted to column-level operations.
- Represents feasible module packings using a graph-theoretic characterization to enable exact optimization.
- Develops an exact algorithm based on this characterization to solve the two-dimensional strip packing problem to optimality.
- Applies the algorithm offline during idle periods (e.g., overnight in automotive systems) to reorganize module layouts.
- Optimizes for two objectives: maximizing the area of the largest free rectangle and maximizing the number of free columns.
- Validates the approach on benchmark instances derived from real FPGA configurations.
Experimental results
Research questions
- RQ1How can space fragmentation in partially reconfigurable FPGAs be effectively mitigated during runtime?
- RQ2To what extent can offline defragmentation improve the availability of large contiguous free regions and free columns?
- RQ3Can an exact algorithm solve the two-dimensional strip packing problem for practical FPGA layouts?
- RQ4What is the impact of defragmentation on the maximum usable free rectangle and column count in real-world scenarios?
Key findings
- In scenario A, the maximal free rectangle increased from 7 RFUs (7×1) to 22 RFUs (2×11), a 3.1× improvement in area.
- On average, the area of the largest free rectangle increased by a factor of 2.2 across all scenarios.
- The number of free columns increased from 0 to an average of 4.2, with a maximum increase of 6 columns in scenario C.
- In scenario B, the maximal free rectangle grew from 16 RFUs (2×8) to 44 RFUs (4×11), a 2.75× improvement.
- In scenario H, the number of free columns increased from 3 to 7, enabling more efficient future reconfiguration.
- The method successfully increased both the size of the largest free rectangle and the number of free columns, even when modules with low usage counts were removed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.