aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/gfx.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-12 22:04:13 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-12 22:04:13 +0200
commitb8a42ff53b1fbb6e03d169d14e58180a750f4cad (patch)
tree72920e1ca49d1520045c5df847abe227f70b2a2a /ice40/gfx.cc
parentad60ab2ef164678cdde4410906cea674d122bf13 (diff)
downloadnextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.gz
nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.bz2
nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.zip
Updates from clang-format
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/gfx.cc')
-rw-r--r--ice40/gfx.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/gfx.cc b/ice40/gfx.cc
index d6935b7d..f4941750 100644
--- a/ice40/gfx.cc
+++ b/ice40/gfx.cc
@@ -333,7 +333,7 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id,
// LC Inputs
- if (id >= TILE_WIRE_LUTFF_0_IN_0 && id <= TILE_WIRE_LUTFF_7_IN_3) {
+ if (id >= TILE_WIRE_LUTFF_0_IN_0 && id <= TILE_WIRE_LUTFF_7_IN_3) {
int idx = id - TILE_WIRE_LUTFF_0_IN_0;
int z = idx / 4;
int input = idx % 4;
@@ -354,7 +354,7 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id,
el.y1 = y1;
el.y2 = y1;
el.x1 = x + main_swbox_x2;
- el.x2 = x + 0.97 + 0.0025 * (7-idx);
+ el.x2 = x + 0.97 + 0.0025 * (7 - idx);
g.push_back(el);
el.y1 = y1;
@@ -386,7 +386,7 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id,
el.x1 = el.x2;
g.push_back(el);
- for (int i = 0; i < 7; i ++) {
+ for (int i = 0; i < 7; i++) {
el.y1 = y + logic_cell_y2 + i * logic_cell_pitch;
el.y2 = y + logic_cell_y1 + (i + 1) * logic_cell_pitch;
g.push_back(el);