diff --git a/fpga_interchange/chipdb.h b/fpga_interchange/chipdb.h index 2f82dcc9..78c56471 100644 --- a/fpga_interchange/chipdb.h +++ b/fpga_interchange/chipdb.h @@ -34,7 +34,7 @@ NEXTPNR_NAMESPACE_BEGIN * kExpectedChipInfoVersion */ -static constexpr int32_t kExpectedChipInfoVersion = 2; +static constexpr int32_t kExpectedChipInfoVersion = 3; // Flattened site indexing. // @@ -198,6 +198,14 @@ NPNR_PACKED_STRUCT(struct CellConstraintPOD { RelSlice states; // State indicies }); +// Cell parameters metadata +NPNR_PACKED_STRUCT(struct CellParameterPOD { + int32_t cell_type; // constid + int32_t parameter; // constid + int32_t format; // ParameterFormat enum + int32_t default_value; // constid +}); + NPNR_PACKED_STRUCT(struct CellBelMapPOD { RelSlice common_pins; RelSlice parameter_pins; @@ -218,6 +226,7 @@ NPNR_PACKED_STRUCT(struct CellMapPOD { RelSlice cell_bel_map; RelSlice lut_cells; + RelSlice cell_parameters; }); NPNR_PACKED_STRUCT(struct PackagePinPOD {