diff options
author | David Shah <davey1576@gmail.com> | 2018-07-09 17:00:54 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-09 17:00:54 +0200 |
commit | 132c5b5019fa485d7e99311bb27cfdb47fc05226 (patch) | |
tree | 13669ddd27da7fa97eb528602a45fbce5f0839c3 /ice40/gfx.cc | |
parent | b5cf1c8257de6e6c5a6d757231879d7aba0798cb (diff) | |
download | nextpnr-132c5b5019fa485d7e99311bb27cfdb47fc05226.tar.gz nextpnr-132c5b5019fa485d7e99311bb27cfdb47fc05226.tar.bz2 nextpnr-132c5b5019fa485d7e99311bb27cfdb47fc05226.zip |
Make logic cell positioning a constant
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/gfx.cc')
-rw-r--r-- | ice40/gfx.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/gfx.cc b/ice40/gfx.cc index f29b38dc..d59c00aa 100644 --- a/ice40/gfx.cc +++ b/ice40/gfx.cc @@ -262,8 +262,8 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id) GraphicElement el; el.type = GraphicElement::G_LINE; el.x1 = x + lc_lut_swbox_x2; - el.x2 = x + 0.82; - el.y1 = y + 0.4675 + (0.005 * input) + z * (0.5 / 8); + el.x2 = x + logic_cell_x1; + el.y1 = y + 0.4675 + (0.005 * input) + z * logic_cell_pitch; el.y2 = el.y1; g.push_back(el); } |