Skip to content

Commit 337a46c

Browse files
committed
Add assumptions about cost structure.
Signed-off-by: Keith Rothman <[email protected]>
1 parent 6bc58a1 commit 337a46c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vpr/src/route/bucket.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,16 @@ alloc_heap_data() {
182182
// with items is returned. This randomization exists to prevent the router
183183
// from following identical paths when operating with identical costs.
184184
// Consider two parallel paths to a node.
185+
//
186+
// Important node: This approximation makes some assumptions about the
187+
// structure of costs.
188+
//
189+
// Assumptions:
190+
// 1. 0 is the minimum cost
191+
// 2. Costs that are different by 0.1 % of the maximum cost are effectively
192+
// equivilant
193+
// 3. The cost function is roughly linear.
194+
//
185195
class Bucket {
186196
public:
187197
Bucket() {}

0 commit comments

Comments
 (0)