diff options
author | David Shah <davey1576@gmail.com> | 2018-07-25 19:44:50 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-25 19:44:50 +0200 |
commit | 8fffb0add9f936decc488a80ac721b947c1b7c30 (patch) | |
tree | 17ae87b0de81e30a7001d5936c3b8fe847867f33 /ecp5/arch.h | |
parent | 2596b9fe17fbf0a08ff234c7798a32429d27640b (diff) | |
download | nextpnr-8fffb0add9f936decc488a80ac721b947c1b7c30.tar.gz nextpnr-8fffb0add9f936decc488a80ac721b947c1b7c30.tar.bz2 nextpnr-8fffb0add9f936decc488a80ac721b947c1b7c30.zip |
ecp5: Add global network info to database
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r-- | ecp5/arch.h | 21 |
1 files changed, 21 insertions, 0 deletions
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<PackagePinPOD> 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<LocationTypePOD> locations; RelPtr<int32_t> location_type; + RelPtr<GlobalInfoPOD> location_glbinfo; RelPtr<RelPtr<char>> tiletype_names; RelPtr<PackageInfoPOD> package_info; RelPtr<PIOInfoPOD> pio_info; |