Skip to content

Commit

Permalink
pack_io_xc7.c: fix wrong location string type
Browse files Browse the repository at this point in the history
  • Loading branch information
hansfbaier committed Aug 4, 2023
1 parent 938a34b commit 6b21a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xilinx/pack_io_xc7.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void XC7Packer::pack_io()
pad->attrs[id_LOC] = pad->attrs.at(id_PACKAGE_PIN);
}
if (pad->attrs.count(id_LOC)) {
std::string loc = pad->attrs.at(id_LOC).as_string();
std::string loc = pad->attrs.at(id_LOC).to_string();
std::string site = ctx->getPackagePinSite(loc);
if (site.empty())
log_error("Unable to constrain IO '%s', device does not have a pin named '%s'\n", pad->name.c_str(ctx),
Expand Down

0 comments on commit 6b21a26

Please sign in to comment.