diff options
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/pack.cc | 4 |
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" |