diff options
Diffstat (limited to 'ice40/pcf.cc')
-rw-r--r-- | ice40/pcf.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ice40/pcf.cc b/ice40/pcf.cc index 13fe199e..51f67364 100644 --- a/ice40/pcf.cc +++ b/ice40/pcf.cc @@ -52,7 +52,7 @@ bool apply_pcf(Context *ctx, std::istream &in) args_end++; std::string cell = words.at(args_end); std::string pin = words.at(args_end + 1); - auto fnd_cell = ctx->cells.find(cell); + auto fnd_cell = ctx->cells.find(ctx->id(cell)); if (fnd_cell == ctx->cells.end()) { log_warning("unmatched pcf constraint %s\n", cell.c_str()); } else { @@ -60,10 +60,10 @@ bool apply_pcf(Context *ctx, std::istream &in) if (pin_bel == BelId()) log_error("package does not have a pin named %s\n", pin.c_str()); - fnd_cell->second->attrs["BEL"] = - ctx->getBelName(pin_bel).str(); + fnd_cell->second->attrs[ctx->id("BEL")] = + ctx->getBelName(pin_bel).str(ctx); log_info("constrained '%s' to bel '%s'\n", cell.c_str(), - fnd_cell->second->attrs["BEL"].c_str()); + fnd_cell->second->attrs[ctx->id("BEL")].c_str()); } } else { log_error("unsupported pcf command '%s'\n", cmd.c_str()); |