Docsity

matematica matematica mat, Esquemas de Matemática

Toggle sidebar
bg1
Estimation distribution algorithm for
FPGA place and route
Abstract—The evolution of semiconductor devices fabrication
allied to modern critical embedded systems real time require-
ments led FPGA design to more powerful architectures. System-
on-Chip FPGAs can suit high-end applications design, but their
complexity is a challenge even for the most capable Electronic
Design and Automation tools. This new scenario suggests that
new tools and techniques will have to be designed to create
designs that can obtain the best possible performance of the
hardware also considering other variables as energy consumption
and production. This work presents an Estimation Distribution
Algorithm (EDA) for FPGA place and route operations that is
part of an Electronic Design and Automation tool. Proposed
algorithm’s result is a probabilistic model capable of generating
different place and route solutions that meet the design require-
ments, allowing a better and faster design space exploration. This
works results showed that the chosen EDA algorithm can solve
the place-and-route problem for a small-size FPGA.
Index Terms—EDA, FPGA, Placement, Route, tool
I. INTRODUCTION
Since initial studies of FPGAs [1] each step of the design
flow was considered a topic of interest. Problems of different
complexity levels had to be solved by programming tools
to allow the device to be programmed and used. Among
these problems the placement and routing problem stills a
challenge. Despite the increasing of computers processing
power, hardware complexity also increased and executing the
place and route step design in an FPGA System on Chip
(SoC) is still a challenge. In this case there are two problems
involved: the placement of the hardware blocks in the device
and the routing of these blocks.
The most used solution for placement problem is to start
with a random placement as an initial solution and make
aleatory changes with random changes of the locations. The
evaluation of each move is executed by the placement algo-
rithm and can be accepted or rejected. Simulated Annealing
(SA) based algorithms use an energy function to evaluate if
a move can be accepted or not [2]. A partitioning strategy
(also known as Min-Cut placement) is used in other algorithms
proposed to solve this problem where the circuit is modeled
as a graph and a bi-sectioning algorithm divides the graph
into two group to perform moves between them. Kernighan-
Lin and Fiduccia-Mattheyses algorithms are based in this
technique [3]. The problem in this case is the high execution
time needed for these algorithms that have quadratic time
complexity in average-case scenarios. Analytic placers [10]
are other choice that numerically calculate the coordinates of
the logic blocs considering the hardware area. The algorithms
are based on a quadratic wirelength objective function that
optimizes a connectivity matrix in order to minimize the
connections length.
After choosing the place for each logic block, the design
needs to be routed. It is a complex operation that is executed
in two steps: a global routing and a detailed routing. Global
routing simply chooses a routing channel that solves the
problem while detailed routing assigns the specific routing
segments for each previously chosen path. K-segment channel
routing requires that the maximum number of segments used
for routing any net connection be limited to K. For K = 1, the
K-segment channel routing problem can be solved efficiently
using bipartite matching methods. However, for K≥1, the
problem becomes NP-hard [4]. The search for a solution that
meets the system requirements in acceptable execution time in-
volves heuristic methods and artificial intelligence algorithms.
The first open-source tool that allowed the research in this
area was Versatile Place and Route (VPR) [2]. Despite of all
the benefits this tool provided on FPGA architecture research
there is a problem with real FGPAs architecture support that
appeared only in recent works [5]. An attempt to solve this
problem is being designed by Shah et. al. [6], next-pnr, that
is designed to support commercial FPGAs (iCE40 and ECP5)
and also Xilinx 7-Series by using TORC [7].
State-of-the-art open-source tools for place and route are
VTR [5] and next-pnr [6]. In both tools placement is executed
using Simmulated Annealing (SA) but in [6] an analytic placer
is also available supporting complex constraints, and in [7]
some enhancements were designed and now: the SA placer
is able to move more than one macro-cell of the design
and move between columns. Routers are described as: naive
iterative rip-up and re-route A* algorithm [6], and pathfinder
negotiated congestion algorithm with enhanced with relaxation
techniques combined with look-ahead procedures. In both
cases is easy to notice that algorithms are limited because
they have to be tuned almost manually for each improvement
and are considerably slow if quality is needed.
The main goal of the proposed tool is to use EDA algorithms
for FPGA place and route. The idea is to generate probabilistic
models capable of providing solutions that will better cover the
design search space improving final systems design results.
Presented state-of-the-art solutions are based on previous im-
plementations that has execution time problems and require a
considerable effort to be improved while this work’s proposed
solution is an automated search method.
pf3

Pré-visualização parcial do texto

Baixe matematica matematica mat e outras Esquemas em PDF para Matemática, somente na Docsity!

Estimation distribution algorithm for

FPGA place and route

Abstract—The evolution of semiconductor devices fabrication allied to modern critical embedded systems real time require- ments led FPGA design to more powerful architectures. System- on-Chip FPGAs can suit high-end applications design, but their complexity is a challenge even for the most capable Electronic Design and Automation tools. This new scenario suggests that new tools and techniques will have to be designed to create designs that can obtain the best possible performance of the hardware also considering other variables as energy consumption and production. This work presents an Estimation Distribution Algorithm (EDA) for FPGA place and route operations that is part of an Electronic Design and Automation tool. Proposed algorithm’s result is a probabilistic model capable of generating different place and route solutions that meet the design require- ments, allowing a better and faster design space exploration. This works results showed that the chosen EDA algorithm can solve the place-and-route problem for a small-size FPGA. Index Terms—EDA, FPGA, Placement, Route, tool

I. INTRODUCTION

Since initial studies of FPGAs [1] each step of the design flow was considered a topic of interest. Problems of different complexity levels had to be solved by programming tools to allow the device to be programmed and used. Among these problems the placement and routing problem stills a challenge. Despite the increasing of computers processing power, hardware complexity also increased and executing the place and route step design in an FPGA System on Chip (SoC) is still a challenge. In this case there are two problems involved: the placement of the hardware blocks in the device and the routing of these blocks. The most used solution for placement problem is to start with a random placement as an initial solution and make aleatory changes with random changes of the locations. The evaluation of each move is executed by the placement algo- rithm and can be accepted or rejected. Simulated Annealing (SA) based algorithms use an energy function to evaluate if a move can be accepted or not [2]. A partitioning strategy (also known as Min-Cut placement) is used in other algorithms proposed to solve this problem where the circuit is modeled as a graph and a bi-sectioning algorithm divides the graph into two group to perform moves between them. Kernighan- Lin and Fiduccia-Mattheyses algorithms are based in this technique [3]. The problem in this case is the high execution time needed for these algorithms that have quadratic time complexity in average-case scenarios. Analytic placers [10] are other choice that numerically calculate the coordinates of the logic blocs considering the hardware area. The algorithms are based on a quadratic wirelength objective function that

optimizes a connectivity matrix in order to minimize the connections length.

After choosing the place for each logic block, the design needs to be routed. It is a complex operation that is executed in two steps: a global routing and a detailed routing. Global routing simply chooses a routing channel that solves the problem while detailed routing assigns the specific routing segments for each previously chosen path. K-segment channel routing requires that the maximum number of segments used for routing any net connection be limited to K. For K = 1, the K-segment channel routing problem can be solved efficiently using bipartite matching methods. However, for K ≥ 1 , the problem becomes NP-hard [4]. The search for a solution that meets the system requirements in acceptable execution time in- volves heuristic methods and artificial intelligence algorithms. The first open-source tool that allowed the research in this area was Versatile Place and Route (VPR) [2]. Despite of all the benefits this tool provided on FPGA architecture research there is a problem with real FGPAs architecture support that appeared only in recent works [5]. An attempt to solve this problem is being designed by Shah et. al. [6], next-pnr, that is designed to support commercial FPGAs (iCE40 and ECP5) and also Xilinx 7-Series by using TORC [7].

State-of-the-art open-source tools for place and route are VTR [5] and next-pnr [6]. In both tools placement is executed using Simmulated Annealing (SA) but in [6] an analytic placer is also available supporting complex constraints, and in [7] some enhancements were designed and now: the SA placer is able to move more than one macro-cell of the design and move between columns. Routers are described as: naive iterative rip-up and re-route A* algorithm [6], and pathfinder negotiated congestion algorithm with enhanced with relaxation techniques combined with look-ahead procedures. In both cases is easy to notice that algorithms are limited because they have to be tuned almost manually for each improvement and are considerably slow if quality is needed.

The main goal of the proposed tool is to use EDA algorithms for FPGA place and route. The idea is to generate probabilistic models capable of providing solutions that will better cover the design search space improving final systems design results. Presented state-of-the-art solutions are based on previous im- plementations that has execution time problems and require a considerable effort to be improved while this work’s proposed solution is an automated search method.

II. DESIGN AND INTEGRATION

This work’s proposed algorithm is designed to receive VTR and Shah’s netlists packing results and return a placement design. This placement will be used as input to other EDA algorithm designed for routing operations. (Fig. 1).

Fig. 1. Eda place and route proposed tool flow.

Placement operation can benefit from the fact that FPGAs have specific features. The number of routing tracks in routing channels are fixed on a FPGA which leads to a fixed size problem. A necessary condition for any feasible placement solution is the channel density in every channel cannot exceed the number of routing tracks available in the channel. In order to calculate the channel density accurately, some SA-based placement algorithms also perform global routing iteratively for every move. The drawbacks are that FPGAs contain routing tracks of various lengths. Simple interconnection delay estimation model based on net length or fanout are not accurate enough for use in timing-driven FPGA placement algorithms. Fast and accurate interconnection delay computation methods are needed for timing-driven FPGA placement. But as the EDA algorithm will perform a guided search throughout the valid solutions, these problems are all addressed indirectly. After receiving packing information it is necessary to con- vert other tools representation to designed EDAs individual

representation. Binary and real-based individual representation were tested and preliminary results indicated the binary repre- sentation as the best choice (despite of the bigger size). After this initial conversion step the placement EDA is executed to generate the placement probabilistic model.

costwl =

N∑nets

n=

q(n)

bbx(n) Cav,x(n)

bby (n) Cav,y (n)

Chosen EDA algorithms are modifications of hBOA algo- rithm [8] that is a better choice to handle complex problems in comparison to other EDAs. Placement fitness is a cost function (defined by Equation 1 [9]) that should be minimized where bb is the bounding-box length, Cav is the average channel capacities and q(n) is a factor that compensates for the fact that bounding-box model underestimates larger nets. Routing fitness (defined by Equation 2) is a cost function based on timing analysis that considers the differences (∆) between obtained values and requirements for: clock, maximum and minimum input delays (Equation 3), maximum and minimum output delays (Equation 4). Default value for control constants k 1 and k 2 is set to 1 , but can modified according to system requirements.

costr = (∆clock) ∗ k 1 + (IDelay + ODelay) ∗ k 2 (2)

IDelay = (∆IDeleymax + ∆IDelaymin) (3)

ODelay = (∆ODeleymax + ∆ODelaymin) (4)

As presented in Fig 1’s flow it is possible to return from routing solution analysis to placement solution analysis. This return was implemented because sometimes the chosen place- ment from the probabilistic model may not be able to result in a good routing even meeting design’s requirements.

III. RESULTS Proposed EDA algorithm for placement was implemented using C language and the results were analyzed according to the generated probabilistic models. To clarify the approach consider a siple FPGA example preseted by Figure 2. In this case the blocks have 2 inputs and 1 output. Also Figure 2 FPGA has 16 Input/Output pins and 3-wires bus. The binary representation in the bottom of the figure shows how the individual considered by the EDA will be composed. The fist 8 bits represent the position of each block, for example, the block 01 is placed in the first position (considered as the upper left one). The next bits represented in blue collor are used to configure the connection between the inputs and outputs of the blocs and the bus.The last 16 bits represent the connection between the blocks inputs and outputs to the I/O pins of the FPGA. Considering this representation any FPGA can be mapped with any number of logic blocs. The problem in this case is that huge FPGAs will need a search strategy able to deal with larger EDA individuals as an aggressive building blocks construction criteria or divide and conquer approach.