From 12013b4c1f7a7fc653a06d1af8216680de468147 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 12 Oct 2020 10:18:23 +0100 Subject: nexus: Lookup of package and IO pins Signed-off-by: David Shah --- nexus/arch.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'nexus/arch.h') diff --git a/nexus/arch.h b/nexus/arch.h index 89723853..886ee557 100644 --- a/nexus/arch.h +++ b/nexus/arch.h @@ -258,6 +258,8 @@ NPNR_PACKED_STRUCT(struct ChipInfoPOD { uint16_t width; uint16_t height; uint32_t num_tiles; + uint32_t num_pads; + uint32_t num_packages; RelPtr grid; RelPtr globals; RelPtr pads; @@ -827,6 +829,8 @@ struct Arch : BaseCtx const DatabasePOD *db; const ChipInfoPOD *chip_info; + int package_idx; + // Binding states struct LogicTileStatus { @@ -1430,6 +1434,13 @@ struct Arch : BaseCtx // ------------------------------------------------- + const PadInfoPOD *get_pin_data(const std::string &pin) const; + Loc get_pad_loc(const PadInfoPOD *pad) const; + BelId get_pin_bel(const std::string &pin) const; + const PadInfoPOD *get_bel_pad(BelId bel) const; + + // ------------------------------------------------- + // List of IO constraints, used by PDC parser std::unordered_map> io_attr; -- cgit v1.2.3