diff options
author | Matt Johnston <matt@codeconstruct.com.au> | 2021-12-12 16:52:01 +0800 |
---|---|---|
committer | Matt Johnston <matt@codeconstruct.com.au> | 2021-12-13 11:48:50 +0800 |
commit | 90b0e90bbe2fb923154096a8be3660b5e3f4cbb0 (patch) | |
tree | e953c4a31ce28c32dd4e5e202952a2504e73953a /ecp5/arch.h | |
parent | a933f82845e489af7f5e209d2d43ff79b4c521ca (diff) | |
download | nextpnr-90b0e90bbe2fb923154096a8be3660b5e3f4cbb0.tar.gz nextpnr-90b0e90bbe2fb923154096a8be3660b5e3f4cbb0.tar.bz2 nextpnr-90b0e90bbe2fb923154096a8be3660b5e3f4cbb0.zip |
ecp5: Reduce some chipdb fields sizes
This reduces the final binary size by ~7 MB for 85k
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r-- | ecp5/arch.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h index a5706379..e7bf64fe 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -54,11 +54,10 @@ NPNR_PACKED_STRUCT(struct BelPortPOD { NPNR_PACKED_STRUCT(struct PipInfoPOD { LocationPOD rel_src_loc, rel_dst_loc; - int32_t src_idx, dst_idx; - int32_t timing_class; - int16_t tile_type; + int16_t src_idx, dst_idx; + int16_t timing_class; + int8_t tile_type; int8_t pip_type; - int8_t padding_0; }); NPNR_PACKED_STRUCT(struct PipLocatorPOD { @@ -68,8 +67,8 @@ NPNR_PACKED_STRUCT(struct PipLocatorPOD { NPNR_PACKED_STRUCT(struct WireInfoPOD { RelPtr<char> name; - int32_t type; - int32_t tile_wire; + int16_t type; + int16_t tile_wire; RelSlice<PipLocatorPOD> pips_uphill, pips_downhill; RelSlice<BelPortPOD> bel_pins; }); |