1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-16 12:53:25 +00:00
This commit is contained in:
Miodrag Milanovic
2025-06-22 09:44:22 +02:00
parent f57c9f4cb7
commit 6cfccc502f

View File

@@ -34,6 +34,13 @@ void GateMateImpl::drawBel(std::vector<GraphicElement> &g, GraphicElement::style
el.type = GraphicElement::TYPE_BOX;
el.style = style;
switch (bel_type.index) {
case id_CPE_LT_FULL.index:
el.x1 = loc.x + 0.21;
el.x2 = el.x1 + 0.18;
el.y1 = loc.y + 0.25;
el.y2 = el.y1 + 0.50;
g.push_back(el);
break;
case id_CPE_LT_L.index:
el.x1 = loc.x + 0.20;
el.x2 = el.x1 + 0.20;
@@ -48,6 +55,34 @@ void GateMateImpl::drawBel(std::vector<GraphicElement> &g, GraphicElement::style
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_FF_L.index:
el.x1 = loc.x + 0.45;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.25;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_FF_U.index:
el.x1 = loc.x + 0.45;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.55;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_RAMIO_L.index:
el.x1 = loc.x + 0.60;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.25;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_RAMIO_U.index:
el.x1 = loc.x + 0.60;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.55;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_RAM.index:
el.x1 = loc.x + 0.70;
el.x2 = el.x1 + 0.20;