From 90b0e90bbe2fb923154096a8be3660b5e3f4cbb0 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 12 Dec 2021 16:52:01 +0800 Subject: ecp5: Reduce some chipdb fields sizes This reduces the final binary size by ~7 MB for 85k --- ecp5/arch.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ecp5/arch.h') 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 name; - int32_t type; - int32_t tile_wire; + int16_t type; + int16_t tile_wire; RelSlice pips_uphill, pips_downhill; RelSlice bel_pins; }); -- cgit v1.2.3