From e9ae0cf7ce664f03b1810dbe21fa82100c7b58c3 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 20 Oct 2019 09:38:08 +0200 Subject: muxes only together with slices --- ecp5/arch.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'ecp5') diff --git a/ecp5/arch.cc b/ecp5/arch.cc index d111e923..9e5c4a14 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -639,15 +639,6 @@ std::vector Arch::getDecalGraphics(DecalId decal) const el.y1 = y + switchbox_y1; el.y2 = y + switchbox_y2; ret.push_back(el); - - for(int i=0;i<4;i++) - { - el.x1 = x + slice_x2 + 0.0255f; - el.x2 = el.x1 + 0.0017f; - el.y1 = y + slice_y2 - 0.0017f * (TILE_WIRE_CLK3_SLICE - TILE_WIRE_DUMMY_D2 + 5 + i*26) + 3*slice_pitch - 0.0007f; - el.y2 = el.y1 + 0.0017f * 5; - ret.push_back(el); - } } } if (decal.type == DecalId::TYPE_WIRE) { @@ -924,6 +915,13 @@ std::vector Arch::getDecalGraphics(DecalId decal) const el.y1 = y + slice_y1 + (z)*slice_pitch; el.y2 = y + slice_y2 + (z)*slice_pitch; ret.push_back(el); + + el.style = GraphicElement::STYLE_FRAME; + el.x1 = x + slice_x2 + 0.0255f; + el.x2 = el.x1 + 0.0017f; + el.y1 = y + slice_y2 - 0.0017f * (TILE_WIRE_CLK3_SLICE - TILE_WIRE_DUMMY_D2 + 5 + z*26) + 3*slice_pitch - 0.0007f; + el.y2 = el.y1 + 0.0017f * 5; + ret.push_back(el); } if (bel_type == id_TRELLIS_IO) { -- cgit v1.2.3