diff options
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r-- | ecp5/arch.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 97aee1cc..f198861a 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -723,7 +723,16 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const el.y1 = y + slice_y1; el.y2 = y + slice_y2; ret.push_back(el); - } else if (bel_type == id_DCUA || bel_type == id_EXTREFB || bel_type == id_PCSCLKDIV || bel_type == id_DTR || + } else if (bel_type == id_DCUA) { + GraphicElement el; + el.type = GraphicElement::TYPE_BOX; + el.style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_INACTIVE; + el.x1 = x + slice_x1; + el.x2 = x + 0.97; + el.y1 = y + slice_y2; + el.y2 = y + 0.25; + ret.push_back(el); + } else if (bel_type == id_EXTREFB || bel_type == id_PCSCLKDIV || bel_type == id_DTR || bel_type == id_USRMCLK) { GraphicElement el; el.type = GraphicElement::TYPE_BOX; |