aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/gfx.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-12-13 19:44:49 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2019-12-13 19:44:49 +0100
commit6d005f38b5e771341c67e00db054c9d5010e2a56 (patch)
treedb1b77deb519a7a96d8acc7d996be244837837d5 /ecp5/gfx.cc
parent2a5f0bbd28481e9809ffe7c7b972252878420888 (diff)
downloadnextpnr-6d005f38b5e771341c67e00db054c9d5010e2a56.tar.gz
nextpnr-6d005f38b5e771341c67e00db054c9d5010e2a56.tar.bz2
nextpnr-6d005f38b5e771341c67e00db054c9d5010e2a56.zip
add more
Diffstat (limited to 'ecp5/gfx.cc')
-rw-r--r--ecp5/gfx.cc31
1 files changed, 29 insertions, 2 deletions
diff --git a/ecp5/gfx.cc b/ecp5/gfx.cc
index e06bcfa6..232b93d9 100644
--- a/ecp5/gfx.cc
+++ b/ecp5/gfx.cc
@@ -70,8 +70,8 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, int w, int h, IdS
el.type = GraphicElement::TYPE_LINE;
el.style = style;
bool top_bottom = (y == 0 || y == (h - 1));
- int gap = 3-(tilewire - TILE_WIRE_PADDOD_PIO)/6;
- int num = (tilewire - TILE_WIRE_PADDOD_PIO)%6;
+ int gap = 3-(tilewire - TILE_WIRE_PADDOD_PIO)/7;
+ int num = (tilewire - TILE_WIRE_PADDOD_PIO)%7;
if (top_bottom) {
el.x1 = x + io_cell_h_x1 + (gap + 2) * 0.10 + 0.0017f * (num + 1);
el.x2 = el.x1;
@@ -95,6 +95,33 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, int w, int h, IdS
}
g.push_back(el);
}
+ if (wire_type == id_WIRE_TYPE_DDRDLL) {
+ GraphicElement el;
+ el.type = GraphicElement::TYPE_LINE;
+ el.style = style;
+ int num = (tilewire - TILE_WIRE_DDRDEL_DDRDLL);
+ el.x1 = x + io_cell_h_x1 + 0.2 + 0.0017f * (num + 1);
+ el.x2 = el.x1;
+ if (y == h - 1) {
+ el.y1 = y + 0.2;
+ el.y2 = el.y1 - 0.015f;
+ } else {
+ el.y1 = y + 0.8;
+ el.y2 = el.y1 + 0.015f;
+ }
+ g.push_back(el);
+ }
+ if (wire_type == id_WIRE_TYPE_CCLK) {
+ GraphicElement el;
+ el.type = GraphicElement::TYPE_LINE;
+ el.style = style;
+ int num = (tilewire - TILE_WIRE_JPADDI_CCLK);
+ el.x1 = x + slice_x1 + 0.0017f * (num + 1);
+ el.x2 = el.x1;
+ el.y1 = y + slice_y2 - 1*slice_pitch;
+ el.y2 = el.y1 - 0.015f;
+ g.push_back(el);
+ }
if (wire_type == id_WIRE_TYPE_IOLOGIC) {
GraphicElement el;