Skip to content

Commit

Permalink
add iostd
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed Oct 9, 2024
1 parent 6d9095e commit 8bc42ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions himbaechel/uarch/gowin/cst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ static void add_sip_constraints(Context *ctx, const Extra_package_data_POD *extr
log_error("Pin not found.\n");
}
it->second->setAttr(IdString(ID_BEL), std::string(ctx->nameOfBel(bel)));

if(cst.iostd > 0) {
std::string attr = "&IO_TYPE=";
attr += IdString(cst.iostd).c_str(ctx);
boost::algorithm::to_upper(attr);
it->second->setAttr(ctx->id(attr), 1);
}
}
}

Expand Down

0 comments on commit 8bc42ce

Please sign in to comment.