From af1fba9f5232706af4ae31ad5b0186b44de03cfa Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Mon, 22 Mar 2021 12:42:11 -0700 Subject: Update latest version of FPGA interchange schema. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- fpga_interchange/chipdb.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3