From 88e1e6bdf4d01d31389fce92cdc88e16c9a5ebc1 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 6 Dec 2018 10:52:46 +0000 Subject: [PATCH] clangformat Signed-off-by: David Shah --- ice40/bitstream.cc | 2 +- ice40/cells.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc index 87d77b9d..83664169 100644 --- a/ice40/bitstream.cc +++ b/ice40/bitstream.cc @@ -592,7 +592,7 @@ void write_asc(const Context *ctx, std::ostream &out) configure_extra_cell(config, ctx, cell.second.get(), rgba_params, true, std::string("IpConfig.")); set_ec_cbit(config, ctx, get_ec_config(ctx->chip_info, cell.second->bel), "RGBA_DRV_EN", true, "IpConfig."); } else if (cell.second->type == ctx->id("SB_WARMBOOT") || cell.second->type == ctx->id("ICESTORM_LFOSC") || - cell.second->type == ctx->id("SB_LEDDA_IP") ) { + cell.second->type == ctx->id("SB_LEDDA_IP")) { // No config needed } else if (cell.second->type == ctx->id("ICESTORM_SPRAM")) { const BelInfoPOD &beli = ci.bel_data[bel.index]; diff --git a/ice40/cells.cc b/ice40/cells.cc index aad719b1..35a5346f 100644 --- a/ice40/cells.cc +++ b/ice40/cells.cc @@ -269,7 +269,8 @@ std::unique_ptr create_ice_cell(Context *ctx, IdString type, std::stri add_port(ctx, new_cell.get(), "LEDDADDR" + std::to_string(i), PORT_IN); add_port(ctx, new_cell.get(), "LEDDDEN", PORT_IN); add_port(ctx, new_cell.get(), "LEDDEXE", PORT_IN); - add_port(ctx, new_cell.get(), "LEDDRST", PORT_IN); //doesn't actually exist, for icecube code compatibility only + add_port(ctx, new_cell.get(), "LEDDRST", PORT_IN); // doesn't actually exist, for icecube code compatibility + // only add_port(ctx, new_cell.get(), "PWMOUT0", PORT_OUT); add_port(ctx, new_cell.get(), "PWMOUT1", PORT_OUT); add_port(ctx, new_cell.get(), "PWMOUT2", PORT_OUT);