Unverified Commit 125b2895 by Yucheng Wang Committed by GitHub

Merge pull request #57 from TILOS-AI-Institute/Proxy-cost-doc-fix

Proxy cost doc fix
parents b54e4a82 40e48d48
# Proxy Cost Computation in Circuit Training # Proxy Cost Computation in Circuit Training
<i>In this documentation, we use gridcell and grid interchangably. They both mean the grid system induced by the gridding process.</i>
In Circuit Training, *proxy cost* is the weighted sum of wirelength, density, and congestion costs. It is used to determine the overall quality of the macro placement solution. In Circuit Training, *proxy cost* is the weighted sum of wirelength, density, and congestion costs. It is used to determine the overall quality of the macro placement solution.
<p align="center"> <p align="center">
...@@ -63,9 +65,7 @@ We divide the congestion cost computation into six sub-stages: ...@@ -63,9 +65,7 @@ We divide the congestion cost computation into six sub-stages:
6. [Finally, we concatenate the **Grid horizontal congestion** array and the **Grid vertical congestion** array and take the average of the top **5**% of the concatenated list.](#computation-of-the-final-congestion-cost) 6. [Finally, we concatenate the **Grid horizontal congestion** array and the **Grid vertical congestion** array and take the average of the top **5**% of the concatenated list.](#computation-of-the-final-congestion-cost)
### Computation of grid congestion due to net routing ### Computation of grid congestion due to net routing
We first want to address that the following computation is **"grid-based"** (not to be confused with the conventional n-pin net) derived from gridding. The main differences are instead of looking at each pin location, we only look at grid cells subject to pin locations. This implies that if all net entities (source pin and sink pins) are within the same grid cell, no routing congestion will be computed (except for macro congestions). Only when net entities are placed into different grid cells, we compute the routing congestion as described in the following sections. In other words, if a three-pin net has a source pin in grid $g_i$ and two sink pins in the same grid $g_j$, we would consider this as a two-grid net. We first want to address that the following computation is **"grid-based"** (not to be confused with the conventional n-pin net) derived from gridding. The main differences are instead of looking at each pin location, we only look at grid cells subject to pin locations. This implies that if all net entities (source pin and sink pins) are within the same grid cell, no routing congestion will be computed (except for macro congestions). More formally, we define a n-grid net as a net whose pins occupy n different grids. We also define the grid occupied by the source pin of a net as the source grid of the net, and remaining grids occupied by other pins of the net as sink grids. In other words, if a three-pin net has a source pin in grid g<b><sub>i<sub></b> and two sink pins in the same grid g<b><sub>j<sub></b>, we would consider this as a two-grid net.
Note that we use n-grid net to describe the $n$ grid cells where the pins are located within a net.
Given the above grid-base routing setting, we divide this problem into three sub-problems. Given the above grid-base routing setting, we divide this problem into three sub-problems.
1. [Congestion due to two-grid nets.](#congestion-due-to-two-grid-nets) 1. [Congestion due to two-grid nets.](#congestion-due-to-two-grid-nets)
...@@ -186,8 +186,8 @@ Figure corresponding to point five. ...@@ -186,8 +186,8 @@ Figure corresponding to point five.
#### *Congestion due to multi-grid nets where the number of grids is greater than three* #### *Congestion due to multi-grid nets where the number of grids is greater than three*
1. Consider the net is a n-grid net where <b>n > 3</b>. 1. Consider the net is a n-grid net where <b>n > 3</b>.
2. We break this net into **n-1** two grid nets where the source grid is the common node. 2. We break this net using star model into **n-1** two-grid nets where the source grid is the common node.
3. For each two grid nets we update congestion values. 3. For each two-grid nets we update congestion values.
#### *Computation for Smoothing:* #### *Computation for Smoothing:*
...@@ -208,7 +208,8 @@ Figure corresponding to point five. ...@@ -208,7 +208,8 @@ Figure corresponding to point five.
</p> </p>
#### *Computation for Macro Congestion:* #### *Computation for Macro Congestion:*
Macro congestion is induced by the location of hard macros over the grid cells. For each hard macro, we need to consider its dimension of overlapping over the grid cells and the macro routing resources given. Macro congestion is induced by the location of hard macros over the grid cells. For each hard macro, we need to consider its dimension of overlapping over the grid cells and the macro routing resources given. The computation of macro congestion is quite straightforward. We just need to add the rout-
ing resources blocked by the macros to the corresponding boundaries of the gridcells.
When a macro overlaps with multiple gridcells, if any part of the module **partially overlaps** with the grid cell (either vertically, or horizontally), we set the top row (if vertical) or right column (if horizontal) to 0. We define partially overlaps as when a hard macro does not fully cover a grid cell. When a macro overlaps with multiple gridcells, if any part of the module **partially overlaps** with the grid cell (either vertically, or horizontally), we set the top row (if vertical) or right column (if horizontal) to 0. We define partially overlaps as when a hard macro does not fully cover a grid cell.
......
Docs/ProxyCost/images/image10.png

57 KB | W: | H:

Docs/ProxyCost/images/image10.png

21.3 KB | W: | H:

Docs/ProxyCost/images/image10.png
Docs/ProxyCost/images/image10.png
Docs/ProxyCost/images/image10.png
Docs/ProxyCost/images/image10.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image11.png

24 KB | W: | H:

Docs/ProxyCost/images/image11.png

9.56 KB | W: | H:

Docs/ProxyCost/images/image11.png
Docs/ProxyCost/images/image11.png
Docs/ProxyCost/images/image11.png
Docs/ProxyCost/images/image11.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image13.png

56.9 KB | W: | H:

Docs/ProxyCost/images/image13.png

21 KB | W: | H:

Docs/ProxyCost/images/image13.png
Docs/ProxyCost/images/image13.png
Docs/ProxyCost/images/image13.png
Docs/ProxyCost/images/image13.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image14.png

52.5 KB | W: | H:

Docs/ProxyCost/images/image14.png

18.8 KB | W: | H:

Docs/ProxyCost/images/image14.png
Docs/ProxyCost/images/image14.png
Docs/ProxyCost/images/image14.png
Docs/ProxyCost/images/image14.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image4.png

23.5 KB | W: | H:

Docs/ProxyCost/images/image4.png

9.9 KB | W: | H:

Docs/ProxyCost/images/image4.png
Docs/ProxyCost/images/image4.png
Docs/ProxyCost/images/image4.png
Docs/ProxyCost/images/image4.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image5.png

25.3 KB | W: | H:

Docs/ProxyCost/images/image5.png

10.3 KB | W: | H:

Docs/ProxyCost/images/image5.png
Docs/ProxyCost/images/image5.png
Docs/ProxyCost/images/image5.png
Docs/ProxyCost/images/image5.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image7.png

57 KB | W: | H:

Docs/ProxyCost/images/image7.png

20.1 KB | W: | H:

Docs/ProxyCost/images/image7.png
Docs/ProxyCost/images/image7.png
Docs/ProxyCost/images/image7.png
Docs/ProxyCost/images/image7.png
  • 2-up
  • Swipe
  • Onion skin
Docs/ProxyCost/images/image9.png

25.8 KB | W: | H:

Docs/ProxyCost/images/image9.png

10.2 KB | W: | H:

Docs/ProxyCost/images/image9.png
Docs/ProxyCost/images/image9.png
Docs/ProxyCost/images/image9.png
Docs/ProxyCost/images/image9.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment