diff options
author | David Shah <davey1576@gmail.com> | 2018-06-04 13:30:20 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-04 13:30:20 +0200 |
commit | 3b78eda5d3d26af04ad87e5d08b3ee6da852b71a (patch) | |
tree | 6c8382234eecbccc9f6f4a1beb0ab933ee11c7c8 /common | |
parent | d13a84b6873ca3c177638ef077d8d315c57da1ca (diff) | |
download | nextpnr-3b78eda5d3d26af04ad87e5d08b3ee6da852b71a.tar.gz nextpnr-3b78eda5d3d26af04ad87e5d08b3ee6da852b71a.tar.bz2 nextpnr-3b78eda5d3d26af04ad87e5d08b3ee6da852b71a.zip |
Add 'styles' to GraphicElement
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/design.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/design.h b/common/design.h index e87304bf..f87a5081 100644 --- a/common/design.h +++ b/common/design.h @@ -36,6 +36,20 @@ using std::vector; struct GraphicElement { + // This will control colour, and there should be separate visibility controls in some cases also + enum { + G_LOCAL_WIRES, // Wires entirely inside tiles, e.g. between switchbox and bels + G_GENERAL_WIRES, // Standard inter-tile routing + G_DEDICATED_WIRES, // Special inter-tile wires, e.g. carry chains + G_BEL_OUTLINE, + G_SWITCHBOX_OUTLINE, + G_TILE_OUTLINE, + G_BEL_PINS, + G_SWITCHBOX_PINS, + G_BEL_MISC, + G_TILE_MISC, + } style; + enum { G_LINE, G_BOX, |