aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-03-20 16:05:43 +0000
committerDavid Shah <dave@ds0.me>2019-03-20 16:07:47 +0000
commit997a66791e13c8e983fcd01473d51a66cbb971b7 (patch)
tree013f1e858cc2e38041431a00b0ae1de8a15a4b74 /common/placer1.cc
parentcadbf42054f224d84e5c5800baf82c0fa3a2a6db (diff)
downloadnextpnr-997a66791e13c8e983fcd01473d51a66cbb971b7.tar.gz
nextpnr-997a66791e13c8e983fcd01473d51a66cbb971b7.tar.bz2
nextpnr-997a66791e13c8e983fcd01473d51a66cbb971b7.zip
json: Fix inputs directly driving inouts
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index cec37847..5b72602f 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -230,7 +230,7 @@ class SAPlacer
double upper = 0.6, lower = 0.4;
- if (curr_metric < 0.95 * avg_metric) {
+ if (curr_metric < 0.95 * avg_metric && curr_metric > 0) {
avg_metric = 0.8 * avg_metric + 0.2 * curr_metric;
} else {
if (Raccept >= 0.8) {