diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-20 11:12:26 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-20 11:12:26 +0200 |
commit | 0d2ae5cc9dc3667f12e0f6d8ff3881191ee10930 (patch) | |
tree | 3af70956f77897c46f6c5ff8d5b1e1eb1bb721bb /ecp5/gfx.h | |
parent | 847910d9864bbb75b7b6930b2c51bb8f5d705d5a (diff) | |
download | nextpnr-0d2ae5cc9dc3667f12e0f6d8ff3881191ee10930.tar.gz nextpnr-0d2ae5cc9dc3667f12e0f6d8ff3881191ee10930.tar.bz2 nextpnr-0d2ae5cc9dc3667f12e0f6d8ff3881191ee10930.zip |
Split graphics calls for wires into gfx.cc
Diffstat (limited to 'ecp5/gfx.h')
-rw-r--r-- | ecp5/gfx.h | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -24,6 +24,29 @@ NEXTPNR_NAMESPACE_BEGIN +const float switchbox_x1 = 0.51; +const float switchbox_x2 = 0.90; +const float switchbox_y1 = 0.51; +const float switchbox_y2 = 0.90; + +const float slice_x1 = 0.92; +const float slice_x2 = 0.94; +const float slice_y1 = 0.71; +const float slice_y2 = 0.745 + 0.0068; +const float slice_pitch = 0.0374 +0.0068; + +const float io_cell_v_x1 = 0.76; +const float io_cell_v_x2 = 0.95; +const float io_cell_v_y1 = 0.05; +const float io_cell_v_y2 = 0.15; +const float io_cell_v_pitch = 0.125; + +const float io_cell_h_x1 = 0.05; +const float io_cell_h_x2 = 0.14; +const float io_cell_h_y1 = 0.05; +const float io_cell_h_y2 = 0.24; +const float io_cell_h_pitch = 0.125; + enum GfxTileWireId { TILE_WIRE_NONE, @@ -344,6 +367,8 @@ enum GfxTileWireId }; +void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, IdString wire_type, GfxTileWireId tilewire, GraphicElement::style_t style); + NEXTPNR_NAMESPACE_END #endif |