Skip to content

Commit 3dfc9b6

Browse files
committed
More tweaking
Signed-off-by: Eddie Hung <[email protected]>
1 parent 47cd53d commit 3dfc9b6

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/com/xilinx/rapidwright/rwroute/RouteNode.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected void setChildren(RuntimeTracker setChildrenTimer) {
144144
}
145145

146146
private void setBaseCost() {
147-
baseCost = 0.1f;
147+
baseCost = 0.2f;
148148
switch (type) {
149149
case WIRE:
150150
// NOTE: IntentCode is device-dependent
@@ -163,26 +163,26 @@ private void setBaseCost() {
163163
break;
164164
case NODE_SINGLE:
165165
if (length != 0) {
166-
baseCost = 0.8f;
166+
baseCost = 1.0f;
167167
}
168168
break;
169169
case NODE_DOUBLE:
170170
if (endTileXCoordinate == getTile().getTileXCoordinate()) {
171171
// (NN|SS)2_[EW]_BEG[0-7]
172-
baseCost = 1.2f;
172+
baseCost = 1.25f;
173173
} else {
174174
// (EE|WW)2_[EW]_BEG[0-7]
175-
baseCost = 0.8f;
175+
baseCost = 1.0f;
176176
}
177177
break;
178178
case NODE_HQUAD:
179-
baseCost = 0.6f;
179+
baseCost = 0.8f;
180180
break;
181181
case NODE_VQUAD:
182182
baseCost = 1.0f;
183183
break;
184184
case NODE_HLONG:
185-
baseCost = 0.5f;
185+
baseCost = 0.7f;
186186
break;
187187
case NODE_VLONG:
188188
baseCost = 0.8f;

test/src/com/xilinx/rapidwright/rwroute/TestRWRoute.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -273,35 +273,35 @@ void testSingleConnectionHelper(String partName,
273273
// One SLR crossing
274274
// (Too) Close
275275
"SLICE_X9Y299,SLICE_X9Y300,300", // On Laguna column
276-
"SLICE_X9Y300,SLICE_X9Y299,100",
277-
"SLICE_X0Y299,SLICE_X0Y300,300", // Far from Laguna column
278-
"SLICE_X0Y300,SLICE_X0Y299,300",
279-
"SLICE_X53Y299,SLICE_X53Y300,100", // Equidistant from two Laguna columns
280-
"SLICE_X53Y300,SLICE_X53Y299,100",
276+
"SLICE_X9Y300,SLICE_X9Y299,200",
277+
"SLICE_X0Y299,SLICE_X0Y300,200", // Far from Laguna column
278+
"SLICE_X0Y300,SLICE_X0Y299,400",
279+
"SLICE_X53Y299,SLICE_X53Y300,300", // Equidistant from two Laguna columns
280+
"SLICE_X53Y300,SLICE_X53Y299,300",
281281
// Perfect
282282
"SLICE_X9Y241,SLICE_X9Y300,200",
283283
"SLICE_X9Y300,SLICE_X9Y241,100",
284284
"SLICE_X9Y358,SLICE_X9Y299,100",
285285
"SLICE_X9Y299,SLICE_X9Y358,200",
286-
"SLICE_X53Y241,SLICE_X69Y300,200",
287-
"SLICE_X53Y358,SLICE_X69Y299,100",
286+
"SLICE_X53Y241,SLICE_X69Y300,400",
287+
"SLICE_X53Y358,SLICE_X69Y299,300",
288288
// Far
289289
"SLICE_X9Y240,SLICE_X9Y359,100", // On Laguna
290290
"SLICE_X9Y359,SLICE_X9Y240,200",
291-
"SLICE_X162Y240,SLICE_X162Y430,200",
292-
"SLICE_X162Y430,SLICE_X162Y240,200",
291+
"SLICE_X162Y240,SLICE_X162Y430,400",
292+
"SLICE_X162Y430,SLICE_X162Y240,100",
293293
"SLICE_X0Y240,SLICE_X12Y430,200", // Far from Laguna
294294
"SLICE_X0Y430,SLICE_X12Y240,200",
295295

296296
// Two SLR crossings
297297
"SLICE_X162Y299,SLICE_X162Y599,400",
298-
"SLICE_X162Y599,SLICE_X162Y299,300",
298+
"SLICE_X162Y599,SLICE_X162Y299,500",
299299

300300
// Three SLR crossings
301301
"SLICE_X79Y0,SLICE_X79Y899,300", // Straight up: next to Laguna column
302-
"SLICE_X0Y0,SLICE_X0Y899,300", // Straight up: far from Laguna column
303-
"SLICE_X168Y0,SLICE_X168Y899,300", // Straight up: far from Laguna column
304-
"SLICE_X9Y0,SLICE_X162Y899,400", // Up and right
302+
"SLICE_X0Y0,SLICE_X0Y899,500", // Straight up: far from Laguna column
303+
"SLICE_X168Y0,SLICE_X168Y899,400", // Straight up: far from Laguna column
304+
"SLICE_X9Y0,SLICE_X162Y899,400", // Up and right
305305
"SLICE_X168Y162,SLICE_X9Y899,400", // Up and left
306306
})
307307
public void testSLRCrossingNonTimingDriven(String srcSiteName, String dstSiteName, long nodesPoppedLimit) {

0 commit comments

Comments
 (0)