diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-19 13:40:35 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-19 14:10:42 +0200 |
commit | fd40d6f58d10b0435be1f443293e4c9405cfcf05 (patch) | |
tree | 57a3d6b2c90eccfae80e6e16b568486237f101cf /ice40/cells.cc | |
parent | 5f37da970463b4197ddcdfeb94cfd7c7d6803682 (diff) | |
download | nextpnr-fd40d6f58d10b0435be1f443293e4c9405cfcf05.tar.gz nextpnr-fd40d6f58d10b0435be1f443293e4c9405cfcf05.tar.bz2 nextpnr-fd40d6f58d10b0435be1f443293e4c9405cfcf05.zip |
Updates from clangformat
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/cells.cc')
-rw-r--r-- | ice40/cells.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ice40/cells.cc b/ice40/cells.cc index 6a8e7b5e..b6f10f7b 100644 --- a/ice40/cells.cc +++ b/ice40/cells.cc @@ -37,7 +37,7 @@ CellInfo *create_ice_cell(Context *ctx, IdString type, std::string name) CellInfo *new_cell = new CellInfo(); if (name.empty()) { new_cell->name = IdString(ctx, "$nextpnr_" + type.str() + "_" + - std::to_string(auto_idx++)); + std::to_string(auto_idx++)); } else { new_cell->name = ctx->id(name); } @@ -200,8 +200,8 @@ void nxio_to_sb(Context *ctx, CellInfo *nxio, CellInfo *sbio) } NetInfo *donet = sbio->ports.at(ctx->id("D_OUT_0")).net; CellInfo *tbuf = - net_driven_by(ctx, donet, [] - (const Context *ctx, const CellInfo *cell) { + net_driven_by(ctx, donet, + [](const Context *ctx, const CellInfo *cell) { return cell->type == ctx->id("$_TBUF_"); }, "Y"); @@ -251,7 +251,8 @@ bool is_enable_port(const Context *ctx, const PortRef &port) bool is_global_net(const Context *ctx, const NetInfo *net) { - return bool(net_driven_by(ctx, net, is_gbuf, ctx->id("GLOBAL_BUFFER_OUTPUT"))); + return bool( + net_driven_by(ctx, net, is_gbuf, ctx->id("GLOBAL_BUFFER_OUTPUT"))); } NEXTPNR_NAMESPACE_END |