diff options
author | William D. Jones <thor0505@comcast.net> | 2021-01-31 19:27:32 -0500 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-12 10:36:59 +0000 |
commit | 0250aaaddd499bce9a6739823f5511859ec57232 (patch) | |
tree | 2fc1ce5eda07ae37ca058dc663a932632b3c1fb2 /machxo2/pack.cc | |
parent | 2c9d4ba9ae8123e6aea2a690ec03b052ea7a53af (diff) | |
download | nextpnr-0250aaaddd499bce9a6739823f5511859ec57232.tar.gz nextpnr-0250aaaddd499bce9a6739823f5511859ec57232.tar.bz2 nextpnr-0250aaaddd499bce9a6739823f5511859ec57232.zip |
machxo2: clang format.
Diffstat (limited to 'machxo2/pack.cc')
-rw-r--r-- | machxo2/pack.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/machxo2/pack.cc b/machxo2/pack.cc index b18bde1f..d7d40d5d 100644 --- a/machxo2/pack.cc +++ b/machxo2/pack.cc @@ -176,7 +176,7 @@ static void pack_io(Context *ctx) for (auto &p : ci->ports) disconnect_port(ctx, ci, p.first); packed_cells.insert(ci->name); - } else if(is_facade_iob(ctx, ci)) { + } else if (is_facade_iob(ctx, ci)) { // If FACADE_IO has LOC attribute, convert the LOC (pin) to a BEL // attribute and place FACADE_IO at resulting BEL location. A BEL // attribute already on a FACADE_IO is an error. Attributes on @@ -185,10 +185,9 @@ static void pack_io(Context *ctx) auto loc_attr_cell = ci->attrs.find(ctx->id("LOC")); auto bel_attr_cell = ci->attrs.find(ctx->id("BEL")); - if(loc_attr_cell != ci->attrs.end()) { + if (loc_attr_cell != ci->attrs.end()) { if (bel_attr_cell != ci->attrs.end()) { - log_error("IO buffer %s has both a BEL attribute and LOC attribute.\n", - ci->name.c_str(ctx)); + log_error("IO buffer %s has both a BEL attribute and LOC attribute.\n", ci->name.c_str(ctx)); } log_info("found LOC attribute on IO buffer %s.\n", ci->name.c_str(ctx)); |