From 8fffb0add9f936decc488a80ac721b947c1b7c30 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 25 Jul 2018 19:44:50 +0200 Subject: ecp5: Add global network info to database Signed-off-by: David Shah --- ecp5/arch.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ecp5/arch.h') diff --git a/ecp5/arch.h b/ecp5/arch.h index b9fd43f8..b5f3d817 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -117,6 +117,26 @@ NPNR_PACKED_STRUCT(struct PackageInfoPOD { RelPtr pin_data; }); +enum TapDirection : int8_t +{ + TAP_DIR_LEFT = 0, + TAP_DIR_RIGHT = 1 +}; + +enum GlobalQuadrant : int8_t +{ + QUAD_UL = 0, + QUAD_UR = 1, + QUAD_LL = 2, + QUAD_LR = 3, +}; + +NPNR_PACKED_STRUCT(struct GlobalInfoPOD { + int16_t tap_col; + TapDirection tap_dir; + GlobalQuadrant quad; +}); + NPNR_PACKED_STRUCT(struct ChipInfoPOD { int32_t width, height; int32_t num_tiles; @@ -124,6 +144,7 @@ NPNR_PACKED_STRUCT(struct ChipInfoPOD { int32_t num_packages, num_pios; RelPtr locations; RelPtr location_type; + RelPtr location_glbinfo; RelPtr> tiletype_names; RelPtr package_info; RelPtr pio_info; -- cgit v1.2.3