aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pack.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-08-05 19:10:00 +0100
committerDavid Shah <dave@ds0.me>2019-08-05 19:10:00 +0100
commitc9ba81ab50c79de43526436d4d6fda496dffa7b6 (patch)
treece1e720ee3c882df9a1cecd9f98491478da60076 /ice40/pack.cc
parent7b5b5524c43bf84bb9b74e0af9b8fdf2c43d2e25 (diff)
downloadnextpnr-c9ba81ab50c79de43526436d4d6fda496dffa7b6.tar.gz
nextpnr-c9ba81ab50c79de43526436d4d6fda496dffa7b6.tar.bz2
nextpnr-c9ba81ab50c79de43526436d4d6fda496dffa7b6.zip
ice40: Fix regression
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r--ice40/pack.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 462310cd..4386d2a1 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -1237,7 +1237,9 @@ static void pack_special(Context *ctx)
packed->params[pos_map_name.at(param.first)] = pos_map_val.at(param.second.as_string());
}
- auto feedback_path = packed->params[ctx->id("FEEDBACK_PATH")].as_string();
+ auto feedback_path = packed->params[ctx->id("FEEDBACK_PATH")].is_string
+ ? packed->params[ctx->id("FEEDBACK_PATH")].as_string()
+ : std::to_string(packed->params[ctx->id("FEEDBACK_PATH")].as_int64());
std::string fbp_value =
feedback_path == "DELAY"
? "0"