Use site x location to determine if it is one block or other
This commit is contained in:
parent
9f03d9eed3
commit
535fc953d4
@ -80,9 +80,10 @@ TorcInfo::TorcInfo(BaseCtx *ctx, const std::string &inDeviceName, const std::str
|
|||||||
bel_to_site_index.push_back(i);
|
bel_to_site_index.push_back(i);
|
||||||
site_index_to_type[i] = id_SLICE_LUT6;
|
site_index_to_type[i] = id_SLICE_LUT6;
|
||||||
const auto site_name = site.getName();
|
const auto site_name = site.getName();
|
||||||
const auto site_name_back = site_name.back();
|
if (!boost::regex_match(site_name.c_str(), what, re_loc))
|
||||||
if (site_name_back == '0' || site_name_back == '2' || site_name_back == '4' || site_name_back == '6' ||
|
throw;
|
||||||
site_name_back == '8') {
|
const auto sx = boost::lexical_cast<int>(what.str(1));
|
||||||
|
if ((sx & 1) == 0) {
|
||||||
bel_to_loc.emplace_back(x, y, 0);
|
bel_to_loc.emplace_back(x, y, 0);
|
||||||
bel_to_loc.emplace_back(x, y, 1);
|
bel_to_loc.emplace_back(x, y, 1);
|
||||||
bel_to_loc.emplace_back(x, y, 2);
|
bel_to_loc.emplace_back(x, y, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user