From 6d005f38b5e771341c67e00db054c9d5010e2a56 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 13 Dec 2019 19:44:49 +0100 Subject: add more --- ecp5/gfx.cc | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'ecp5/gfx.cc') 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 &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 &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; -- cgit v1.2.3