diff options
author | David Shah <davey1576@gmail.com> | 2018-07-09 16:42:30 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-09 16:42:30 +0200 |
commit | c6043ed570dd90095fdbee3435b83e626b74e327 (patch) | |
tree | 07e066bbdd2871c03a7a657b23cb14d40e0b501d /ice40/gfx.cc | |
parent | ba6f3b45b84be2aca06d82ce5b32f68a70f05ebb (diff) | |
download | nextpnr-c6043ed570dd90095fdbee3435b83e626b74e327.tar.gz nextpnr-c6043ed570dd90095fdbee3435b83e626b74e327.tar.bz2 nextpnr-c6043ed570dd90095fdbee3435b83e626b74e327.zip |
Reorder gfx.h, add LUT0 inputs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/gfx.cc')
-rw-r--r-- | ice40/gfx.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ice40/gfx.cc b/ice40/gfx.cc index 1006f7b9..6954a9fb 100644 --- a/ice40/gfx.cc +++ b/ice40/gfx.cc @@ -254,6 +254,16 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id) el.x2 = x3; g.push_back(el); } + + if (id >= TILE_WIRE_LUTFF_0_IN_0 && id <= TILE_WIRE_LUTFF_0_IN_3) { + GraphicElement el; + el.type = GraphicElement::G_LINE; + el.x1 = x + 0.8; + el.x2 = x + 0.82; + el.y1 = y + 0.4675 + (0.005 * (id - TILE_WIRE_LUTFF_0_IN_0)); + el.y2 = el.y1; + g.push_back(el); + } } NEXTPNR_NAMESPACE_END |