aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-18 14:07:18 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-18 14:07:18 +0200
commit58e3104796480c66a303a4266e6459c7b21295ea (patch)
treea67c779f5eb3bf9c9865a373cced512fdfe30ff9 /ice40
parent8ee149f4fcb66cb61aa729263448c0935fb4d2ad (diff)
downloadnextpnr-58e3104796480c66a303a4266e6459c7b21295ea.tar.gz
nextpnr-58e3104796480c66a303a4266e6459c7b21295ea.tar.bz2
nextpnr-58e3104796480c66a303a4266e6459c7b21295ea.zip
Updates from clangformat
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/chip.h3
-rw-r--r--ice40/pack.cc4
-rw-r--r--ice40/pcf.cc3
3 files changed, 4 insertions, 6 deletions
diff --git a/ice40/chip.h b/ice40/chip.h
index 8ba42290..3b4f19d1 100644
--- a/ice40/chip.h
+++ b/ice40/chip.h
@@ -747,8 +747,7 @@ NEXTPNR_NAMESPACE_END
namespace std {
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelType>
{
- std::size_t operator()(NEXTPNR_NAMESPACE_PREFIX BelType bt) const
- noexcept
+ std::size_t operator()(NEXTPNR_NAMESPACE_PREFIX BelType bt) const noexcept
{
return std::hash<int>()(int(bt));
}
diff --git a/ice40/pack.cc b/ice40/pack.cc
index b8e2cb8f..7cdfc643 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -39,8 +39,8 @@ static void pack_lut_lutffs(Context *ctx)
log_info("cell '%s' is of type '%s'\n", ci->name.c_str(),
ci->type.c_str());
if (is_lut(ci)) {
- CellInfo *packed = create_ice_cell(ctx, "ICESTORM_LC",
- ci->name.str() + "_LC");
+ CellInfo *packed =
+ create_ice_cell(ctx, "ICESTORM_LC", ci->name.str() + "_LC");
std::copy(ci->attrs.begin(), ci->attrs.end(),
std::inserter(packed->attrs, packed->attrs.begin()));
packed_cells.insert(ci->name);
diff --git a/ice40/pcf.cc b/ice40/pcf.cc
index 6fc90118..756aba4a 100644
--- a/ice40/pcf.cc
+++ b/ice40/pcf.cc
@@ -58,8 +58,7 @@ void apply_pcf(Context *ctx, std::istream &in)
if (pin_bel == BelId())
log_error("package does not have a pin named %s\n",
pin.c_str());
- fnd_cell->second->attrs["BEL"] =
- ctx->getBelName(pin_bel).str();
+ fnd_cell->second->attrs["BEL"] = ctx->getBelName(pin_bel).str();
log_info("constrained '%s' to bel '%s'\n", cell.c_str(),
fnd_cell->second->attrs["BEL"].c_str());
}