diff options
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r-- | ecp5/arch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h index 029caef0..219a960e 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -102,6 +102,7 @@ NPNR_PACKED_STRUCT(struct ChipInfoPOD { int32_t num_location_types; RelPtr<LocationTypePOD> locations; RelPtr<int32_t> location_type; + RelPtr<RelPtr<char>> tiletype_names; }); #if defined(_MSC_VER) @@ -698,6 +699,11 @@ struct Arch : BaseCtx return range; } + std::string getPipTiletype(PipId pip) const + { + return chip_info->tiletype_names[locInfo(pip)->pip_data[pip.index].tile_type].get(); + } + BelId getPackagePinBel(const std::string &pin) const; std::string getBelPackagePin(BelId bel) const; |