diff options
author | David Shah <dave@ds0.me> | 2020-11-14 09:07:34 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-14 09:07:34 +0000 |
commit | 06555aa00327061423af120f1b017f9c37d0c051 (patch) | |
tree | 916e2ee161c42a509e8ce18243a3bff894962cd0 | |
parent | b8d0e622fd6650b9d79920943aac5ac0fa363dd8 (diff) | |
download | nextpnr-06555aa00327061423af120f1b017f9c37d0c051.tar.gz nextpnr-06555aa00327061423af120f1b017f9c37d0c051.tar.bz2 nextpnr-06555aa00327061423af120f1b017f9c37d0c051.zip |
clangformat
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r-- | common/command.cc | 5 | ||||
-rw-r--r-- | ecp5/bitstream.cc | 8 |
2 files changed, 5 insertions, 8 deletions
diff --git a/common/command.cc b/common/command.cc index cad89c02..96ea8deb 100644 --- a/common/command.cc +++ b/common/command.cc @@ -443,10 +443,7 @@ std::unique_ptr<Context> CommandHandler::load_json(std::string filename) return ctx; } -void CommandHandler::clear() -{ - vm.clear(); -} +void CommandHandler::clear() { vm.clear(); } void CommandHandler::run_script_hook(const std::string &name) { diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc index 0d168158..9fb823ab 100644 --- a/ecp5/bitstream.cc +++ b/ecp5/bitstream.cc @@ -809,8 +809,8 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex str_or_default(ci->params, ctx->id("SRMODE"), "LSR_OVER_CE")); cc.tiles[tname].add_enum("LSR0.LSRMUX", str_or_default(ci->params, ctx->id("LSRMUX"), "LSR")); } - if (ctx->getBoundWireNet(ctx->getWireByName(ctx->id( - fmt_str("X" << bel.location.x << "/Y" << bel.location.y << "/LSR1")))) == lsrnet) { + if (ctx->getBoundWireNet(ctx->getWireByName( + ctx->id(fmt_str("X" << bel.location.x << "/Y" << bel.location.y << "/LSR1")))) == lsrnet) { cc.tiles[tname].add_enum("LSR1.SRMODE", str_or_default(ci->params, ctx->id("SRMODE"), "LSR_OVER_CE")); cc.tiles[tname].add_enum("LSR1.LSRMUX", str_or_default(ci->params, ctx->id("LSRMUX"), "LSR")); @@ -823,8 +823,8 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex ctx->id(fmt_str("X" << bel.location.x << "/Y" << bel.location.y << "/CLK0")))) == clknet) { cc.tiles[tname].add_enum("CLK0.CLKMUX", str_or_default(ci->params, ctx->id("CLKMUX"), "CLK")); } - if (ctx->getBoundWireNet(ctx->getWireByName(ctx->id( - fmt_str("X" << bel.location.x << "/Y" << bel.location.y << "/CLK1")))) == clknet) { + if (ctx->getBoundWireNet(ctx->getWireByName( + ctx->id(fmt_str("X" << bel.location.x << "/Y" << bel.location.y << "/CLK1")))) == clknet) { cc.tiles[tname].add_enum("CLK1.CLKMUX", str_or_default(ci->params, ctx->id("CLKMUX"), "CLK")); } } |