diff options
author | David Shah <davey1576@gmail.com> | 2018-08-04 08:32:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-04 08:32:42 +0200 |
commit | 65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29 (patch) | |
tree | d54ab5bb7926e7965cf23bb066c126bfeaa39565 /ice40/gfx.cc | |
parent | affc6da1af7afccba1da8cdf3b9e57a01b1fb5e5 (diff) | |
parent | 2215ace1dcc9d16f3661c8f95dff56f5f582b6bc (diff) | |
download | nextpnr-65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29.tar.gz nextpnr-65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29.tar.bz2 nextpnr-65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29.zip |
Merge pull request #23 from daveshah1/use_placeconstr
Making use of relative constraints
Diffstat (limited to 'ice40/gfx.cc')
-rw-r--r-- | ice40/gfx.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/gfx.cc b/ice40/gfx.cc index 924fe964..d5c6e77f 100644 --- a/ice40/gfx.cc +++ b/ice40/gfx.cc @@ -706,7 +706,8 @@ void gfxTilePip(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId src, return; } - if (TILE_WIRE_LUTFF_0_IN_0 <= src && src <= TILE_WIRE_LUTFF_7_IN_3 && TILE_WIRE_LUTFF_0_OUT <= dst && dst <= TILE_WIRE_LUTFF_7_OUT) { + if (TILE_WIRE_LUTFF_0_IN_0 <= src && src <= TILE_WIRE_LUTFF_7_IN_3 && TILE_WIRE_LUTFF_0_OUT <= dst && + dst <= TILE_WIRE_LUTFF_7_OUT) { int lut_idx = (src - TILE_WIRE_LUTFF_0_IN_0) / 4; int in_idx = (src - TILE_WIRE_LUTFF_0_IN_0) % 4; |