Skip to content

Commit 1dd442d

Browse files
committed
Display few more primitives
1 parent c168293 commit 1dd442d

File tree

1 file changed

+21
-0
lines changed
  • himbaechel/uarch/gatemate

1 file changed

+21
-0
lines changed

himbaechel/uarch/gatemate/gfx.cc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ void GateMateImpl::drawBel(std::vector<GraphicElement> &g, GraphicElement::style
4848
el.y2 = el.y1 + 0.60;
4949
g.push_back(el);
5050
break;
51+
case id_BUFG.index:
52+
el.x1 = loc.x + 0.15 + loc.z * 0.20;
53+
el.x2 = el.x1 + 0.15;
54+
el.y1 = loc.y + 0.10;
55+
el.y2 = el.y1 + 0.30;
56+
g.push_back(el);
57+
break;
58+
case id_PLL.index:
59+
el.x1 = loc.x + 0.15 + (loc.z - 4) * 0.20;
60+
el.x2 = el.x1 + 0.15;
61+
el.y1 = loc.y + 0.60;
62+
el.y2 = el.y1 + 0.30;
63+
g.push_back(el);
64+
break;
65+
case id_USR_RSTN.index:
66+
el.x1 = loc.x + 0.20;
67+
el.x2 = el.x1 + 0.20;
68+
el.y1 = loc.y + 0.20;
69+
el.y2 = el.y1 + 0.20;
70+
g.push_back(el);
71+
break;
5172
}
5273
}
5374

0 commit comments

Comments
 (0)