clangformat

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-06-19 09:13:08 +02:00
parent fae2fb4dac
commit 2b560ad0cc
4 changed files with 11 additions and 10 deletions

View File

@ -193,14 +193,13 @@ void init_share_dirname()
std::string proc_self_path = proc_self_dirname();
for (const std::string &proc_share_path : {
proc_self_path + "share/",
proc_self_path + "../share/nextpnr/",
proc_self_path + "../share/",
proc_self_path + "share/",
proc_self_path + "../share/nextpnr/",
proc_self_path + "../share/",
#ifdef nextpnr_DATDIR
nextpnr_DATDIR "/",
nextpnr_DATDIR "/",
#endif
})
{
}) {
if (check_file_exists(proc_share_path, true)) {
npnr_share_dirname = proc_share_path;
return;

View File

@ -40,7 +40,8 @@ po::options_description GateMateImpl::getUArchOptions()
specific.add_options()("out", po::value<std::string>(), "textual configuration bitstream output file");
specific.add_options()("ccf", po::value<std::string>(), "name of constraints file");
specific.add_options()("allow-unconstrained", "allow unconstrained IOs");
specific.add_options()("fpga_mode", po::value<std::string>(), "performance mode (1:lowpower, 2:economy, 3:speed (default))");
specific.add_options()("fpga_mode", po::value<std::string>(),
"performance mode (1:lowpower, 2:economy, 3:speed (default))");
specific.add_options()("time_mode", po::value<std::string>(), "timing mode (1:best, 2:typical, 3:worst (default))");
specific.add_options()("strategy", po::value<std::string>(),
"multi-die clock placement strategy (mirror (default), full or clk1)");

View File

@ -319,8 +319,9 @@ void GateMatePacker::pll_out(CellInfo *cell, IdString origPort, Loc fixed)
}
if (bufg) {
if (net->users.entries() != 1) {
std::string msg = stringf("A PLL output (here %s of %s) connected to a BUFG could only connect to it, not %d ports:\n",
origPort.c_str(ctx), ctx->nameOf(cell), net->users.entries());
std::string msg = stringf(
"A PLL output (here %s of %s) connected to a BUFG could only connect to it, not %d ports:\n",
origPort.c_str(ctx), ctx->nameOf(cell), net->users.entries());
for (auto &usr : net->users) {
msg += stringf(" %s.%s\n", ctx->nameOf(usr.cell), ctx->nameOf(usr.port));
}

View File

@ -17,9 +17,9 @@
*
*/
#include <chrono>
#include <functional>
#include <queue>
#include <chrono>
#include "gatemate.h"
#include "log.h"