aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-10-12 10:47:37 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-10-20 09:41:48 +0200
commit07a8022a1f6b4b24d5e227007d8147e2b3bb592f (patch)
tree173708a6ab5e4d140e4b9184d3d4302bbec3c180 /ecp5
parenta11cc8791b0cc21d6b5c95596644f34e05c7d139 (diff)
downloadnextpnr-07a8022a1f6b4b24d5e227007d8147e2b3bb592f.tar.gz
nextpnr-07a8022a1f6b4b24d5e227007d8147e2b3bb592f.tar.bz2
nextpnr-07a8022a1f6b4b24d5e227007d8147e2b3bb592f.zip
fix mux display
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 81a9725c..31e3e1fa 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -747,7 +747,7 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
el.style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_INACTIVE;
el.x1 = x + switchbox_x2 + 0.0017f * 3;
el.x2 = x + slice_x1 - 0.005f;
- el.y1 = y + slice_y2 - 0.0017f * (TILE_WIRE_CE0 - TILE_WIRE_LSR1 - 5 + 2) + (3 + tilewire - TILE_WIRE_MUXCLK3)*slice_pitch;
+ el.y1 = y + slice_y2 - 0.0017f * (TILE_WIRE_CE0 - TILE_WIRE_LSR1 - 5 + 2) + (3 + 3 - (tilewire - TILE_WIRE_MUXCLK3))*slice_pitch;
el.y2 = el.y1;
ret.push_back(el);
}
@@ -758,7 +758,7 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
el.style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_INACTIVE;
el.x1 = x + switchbox_x2 + 0.0017f * 5;
el.x2 = x + slice_x1 - 0.005f;
- el.y1 = y + slice_y2 - 0.0017f * (TILE_WIRE_CE0 - TILE_WIRE_LSR1 - 5 + 1) + (3 + tilewire - TILE_WIRE_MUXLSR3)*slice_pitch;
+ el.y1 = y + slice_y2 - 0.0017f * (TILE_WIRE_CE0 - TILE_WIRE_LSR1 - 5 + 1) + (3 + 3 - (tilewire - TILE_WIRE_MUXLSR3))*slice_pitch;
el.y2 = el.y1;
ret.push_back(el);
}