From 9ebec3b87f4b4a6a24fc391d1acd944490630499 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 1 Oct 2018 18:20:14 +0100 Subject: [PATCH] clangformat Signed-off-by: David Shah --- common/timing.cc | 4 +--- ecp5/arch.cc | 2 +- ecp5/bitstream.cc | 4 +--- ecp5/pack.cc | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/common/timing.cc b/common/timing.cc index e5e90445..e3a7635f 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -174,11 +174,9 @@ struct Timing log_info(" driver = %s.%s\n", net->driver.cell->name.c_str(ctx), net->driver.port.c_str(ctx)); for (auto net_user : net->users) - log_info(" user: %s.%s\n", net_user.cell->name.c_str(ctx), - net_user.port.c_str(ctx)); + log_info(" user: %s.%s\n", net_user.cell->name.c_str(ctx), net_user.port.c_str(ctx)); } else { log_info(" remaining fanin includes %s (no net)\n", fanin.first->name.c_str(ctx)); - } } } diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 6cd83cce..9c059005 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -511,7 +511,7 @@ bool Arch::getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort delay.delay = 193; return true; } -#if 0 //FIXME +#if 0 // FIXME if (fromPort == id_WCK && (toPort == id_F0 || toPort == id_F1)) { delay.delay = 717; return true; diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc index d8914f1a..0c2d511d 100644 --- a/ecp5/bitstream.cc +++ b/ecp5/bitstream.cc @@ -270,14 +270,12 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex } if (str_or_default(ci->params, ctx->id("MODE"), "LOGIC") == "DPRAM" && slice == "SLICEA") { - cc.tiles[tname].add_enum(slice + ".WREMUX", - str_or_default(ci->params, ctx->id("WREMUX"), "WRE")); + cc.tiles[tname].add_enum(slice + ".WREMUX", str_or_default(ci->params, ctx->id("WREMUX"), "WRE")); // FIXME: WCKMUX NPNR_ASSERT(str_or_default(ci->params, ctx->id("WCKMUX"), "WCK") == "WCK"); } - // Tie unused inputs high for (auto input : {id_A0, id_B0, id_C0, id_D0, id_A1, id_B1, id_C1, id_D1}) { if (ci->ports.find(input) == ci->ports.end() || ci->ports.at(input).net == nullptr) { diff --git a/ecp5/pack.cc b/ecp5/pack.cc index 3ba6e238..8e33356e 100644 --- a/ecp5/pack.cc +++ b/ecp5/pack.cc @@ -525,7 +525,7 @@ class Ecp5Packer if (f1net != nullptr) { ff1 = net_only_drives(ctx, f1net, is_ff, ctx->id("DI"), false); if (ff1 != nullptr && (ff0 == nullptr || can_pack_ffs(ff0, ff1)) && - can_add_ff_to_tile(tile_ffs, ff1)) { + can_add_ff_to_tile(tile_ffs, ff1)) { ff_packing.push_back(std::make_tuple(ff1, slice.get(), 1)); tile_ffs.push_back(ff1); packed_cells.insert(ff1->name); @@ -609,7 +609,7 @@ class Ecp5Packer if (f1net != nullptr) { ff1 = net_only_drives(ctx, f1net, is_ff, ctx->id("DI"), false); if (ff1 != nullptr && (ff0 == nullptr || can_pack_ffs(ff0, ff1)) && - can_add_ff_to_tile(tile_ffs, ff1)) { + can_add_ff_to_tile(tile_ffs, ff1)) { ff_packing.push_back(std::make_tuple(ff1, slice, 1)); tile_ffs.push_back(ff1); packed_cells.insert(ff1->name);