clangformat
This commit is contained in:
parent
e6015dc695
commit
950f33c1bb
12
bba/main.cc
12
bba/main.cc
@ -276,13 +276,13 @@ int main(int argc, char **argv)
|
||||
case 4:
|
||||
data[cursor++] = value >> 24;
|
||||
data[cursor++] = value >> 16;
|
||||
/* fall-through */
|
||||
/* fall-through */
|
||||
case 2:
|
||||
data[cursor++] = value >> 8;
|
||||
/* fall-through */
|
||||
/* fall-through */
|
||||
case 1:
|
||||
data[cursor++] = value;
|
||||
/* fall-through */
|
||||
/* fall-through */
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
@ -293,13 +293,13 @@ int main(int argc, char **argv)
|
||||
case 4:
|
||||
data[cursor + 3] = value >> 24;
|
||||
data[cursor + 2] = value >> 16;
|
||||
/* fall-through */
|
||||
/* fall-through */
|
||||
case 2:
|
||||
data[cursor + 1] = value >> 8;
|
||||
/* fall-through */
|
||||
/* fall-through */
|
||||
case 1:
|
||||
data[cursor] = value;
|
||||
/* fall-through */
|
||||
/* fall-through */
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
|
10
ecp5/main.cc
10
ecp5/main.cc
@ -100,18 +100,16 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (vm.count("help") || argc == 1) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << "\n";
|
||||
std::cout << options << "\n";
|
||||
return argc != 1;
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -75,18 +75,16 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (vm.count("help") || argc == 1) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << "\n";
|
||||
std::cout << options << "\n";
|
||||
return argc != 1;
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -319,7 +319,7 @@ void DesignWidget::newContext(Context *ctx)
|
||||
pip_root->setText(0, "Pips");
|
||||
pip_root->setFlags(pip_root->flags() & ~Qt::ItemIsSelectable);
|
||||
treeWidget->insertTopLevelItem(0, pip_root);
|
||||
#ifndef ARCH_ECP5
|
||||
#ifndef ARCH_ECP5
|
||||
if (ctx) {
|
||||
for (auto pip : ctx->getPips()) {
|
||||
auto id = ctx->getPipName(pip);
|
||||
@ -346,7 +346,7 @@ void DesignWidget::newContext(Context *ctx)
|
||||
for (auto pip : nameToItem[2].toStdMap()) {
|
||||
pip_root->addChild(pip.second);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
nets_root = new QTreeWidgetItem(treeWidget);
|
||||
nets_root->setText(0, "Nets");
|
||||
@ -512,8 +512,7 @@ void DesignWidget::onItemSelectionChanged()
|
||||
if (treeWidget->selectedItems().size() == 0)
|
||||
return;
|
||||
|
||||
if (treeWidget->selectedItems().size() > 1)
|
||||
{
|
||||
if (treeWidget->selectedItems().size() > 1) {
|
||||
std::vector<DecalXY> decals;
|
||||
for (auto clickItem : treeWidget->selectedItems()) {
|
||||
IdString value = static_cast<IdStringTreeItem *>(clickItem)->getData();
|
||||
|
@ -566,9 +566,8 @@ void write_asc(const Context *ctx, std::ostream &out)
|
||||
set_config(ti, config.at(y).at(x),
|
||||
"Cascade.IPCON_LC0" + std::to_string(lc_idx) + "_inmux02_5", true);
|
||||
else
|
||||
set_config(ti, config.at(y).at(x),
|
||||
"Cascade.MULT" + std::to_string(int(tile - TILE_DSP0)) + "_LC0" +
|
||||
std::to_string(lc_idx) + "_inmux02_5",
|
||||
set_config(ti, config.at(y).at(x), "Cascade.MULT" + std::to_string(int(tile - TILE_DSP0)) +
|
||||
"_LC0" + std::to_string(lc_idx) + "_inmux02_5",
|
||||
true);
|
||||
}
|
||||
}
|
||||
|
@ -144,18 +144,16 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
if (vm.count("help") || argc == 1) {
|
||||
help:
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << "\n";
|
||||
std::cout << options << "\n";
|
||||
return argc != 1;
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -662,12 +662,12 @@ static void pack_special(Context *ctx)
|
||||
|
||||
auto feedback_path = packed->params[ctx->id("FEEDBACK_PATH")];
|
||||
packed->params[ctx->id("FEEDBACK_PATH")] =
|
||||
feedback_path == "DELAY"
|
||||
? "0"
|
||||
: feedback_path == "SIMPLE" ? "1"
|
||||
: feedback_path == "PHASE_AND_DELAY"
|
||||
? "2"
|
||||
: feedback_path == "EXTERNAL" ? "6" : feedback_path;
|
||||
feedback_path == "DELAY" ? "0" : feedback_path == "SIMPLE"
|
||||
? "1"
|
||||
: feedback_path == "PHASE_AND_DELAY"
|
||||
? "2"
|
||||
: feedback_path == "EXTERNAL" ? "6"
|
||||
: feedback_path;
|
||||
packed->params[ctx->id("PLLTYPE")] = std::to_string(sb_pll40_type(ctx, ci));
|
||||
|
||||
NetInfo *pad_packagepin_net = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user