aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-12 21:05:09 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-12 21:05:09 +0200
commit4f87ea0eb6ae8a4f8fbf9890c8101cd530d4c5da (patch)
tree9f9db2bb2a5b0be9a381d8a06d49d1dbe13ee536 /ice40/arch.h
parent13e7cd868111300577c36a3fd45ba698ce926160 (diff)
downloadnextpnr-4f87ea0eb6ae8a4f8fbf9890c8101cd530d4c5da.tar.gz
nextpnr-4f87ea0eb6ae8a4f8fbf9890c8101cd530d4c5da.tar.bz2
nextpnr-4f87ea0eb6ae8a4f8fbf9890c8101cd530d4c5da.zip
Improve iCE40 wire database and gfx
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/arch.h')
-rw-r--r--ice40/arch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index 96d0d209..04de5178 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -70,6 +70,11 @@ NPNR_PACKED_STRUCT(struct PipInfoPOD {
int32_t switch_index;
});
+NPNR_PACKED_STRUCT(struct WireSegmentPOD {
+ int8_t x, y;
+ int16_t index;
+});
+
NPNR_PACKED_STRUCT(struct WireInfoPOD {
RelPtr<char> name;
int32_t num_uphill, num_downhill;
@@ -79,6 +84,9 @@ NPNR_PACKED_STRUCT(struct WireInfoPOD {
BelPortPOD bel_uphill;
RelPtr<BelPortPOD> bels_downhill;
+ int32_t num_segments;
+ RelPtr<WireSegmentPOD> segments;
+
int8_t x, y;
WireType type;
int8_t padding_0;