clangformat

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-08-24 12:48:08 +01:00
parent 86393c8c8e
commit e15f0db408

View File

@ -1771,19 +1771,19 @@ class Ecp5Packer
if (ci->attrs.count(ctx->id("LOC"))) { if (ci->attrs.count(ctx->id("LOC"))) {
std::string loc = ci->attrs.at(ctx->id("LOC")).as_string(); std::string loc = ci->attrs.at(ctx->id("LOC")).as_string();
if (loc == "EXTREF0" && if (loc == "EXTREF0" &&
(ctx->args.type == ArchArgs::LFE5UM_25F || ctx->args.type == ArchArgs::LFE5UM5G_25F)) (ctx->args.type == ArchArgs::LFE5UM_25F || ctx->args.type == ArchArgs::LFE5UM5G_25F))
loc_bel = std::string("X42/Y50/EXTREF"); loc_bel = std::string("X42/Y50/EXTREF");
else if (loc == "EXTREF0" && else if (loc == "EXTREF0" &&
(ctx->args.type == ArchArgs::LFE5UM_45F || ctx->args.type == ArchArgs::LFE5UM5G_45F)) (ctx->args.type == ArchArgs::LFE5UM_45F || ctx->args.type == ArchArgs::LFE5UM5G_45F))
loc_bel = std::string("X42/Y71/EXTREF"); loc_bel = std::string("X42/Y71/EXTREF");
else if (loc == "EXTREF1" && else if (loc == "EXTREF1" &&
(ctx->args.type == ArchArgs::LFE5UM_45F || ctx->args.type == ArchArgs::LFE5UM5G_45F)) (ctx->args.type == ArchArgs::LFE5UM_45F || ctx->args.type == ArchArgs::LFE5UM5G_45F))
loc_bel = std::string("X69/Y71/EXTREF"); loc_bel = std::string("X69/Y71/EXTREF");
else if (loc == "EXTREF0" && else if (loc == "EXTREF0" &&
(ctx->args.type == ArchArgs::LFE5UM_85F || ctx->args.type == ArchArgs::LFE5UM5G_85F)) (ctx->args.type == ArchArgs::LFE5UM_85F || ctx->args.type == ArchArgs::LFE5UM5G_85F))
loc_bel = std::string("X46/Y95/EXTREF"); loc_bel = std::string("X46/Y95/EXTREF");
else if (loc == "EXTREF1" && else if (loc == "EXTREF1" &&
(ctx->args.type == ArchArgs::LFE5UM_85F || ctx->args.type == ArchArgs::LFE5UM5G_85F)) (ctx->args.type == ArchArgs::LFE5UM_85F || ctx->args.type == ArchArgs::LFE5UM5G_85F))
loc_bel = std::string("X71/Y95/EXTREF"); loc_bel = std::string("X71/Y95/EXTREF");
} }
if (refo == nullptr) if (refo == nullptr)