diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-12 16:12:16 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-15 09:54:58 -0800 |
commit | 664407089b51e1c66d91ff1ee4aa4d4148bb8f1b (patch) | |
tree | 052acc1abc92bd87748b616e29ba7c396d38cae9 /fpga_interchange/arch.h | |
parent | 5e11e29ba2e5927047b2dbf7d3b613dc33a9cc98 (diff) | |
download | nextpnr-664407089b51e1c66d91ff1ee4aa4d4148bb8f1b.tar.gz nextpnr-664407089b51e1c66d91ff1ee4aa4d4148bb8f1b.tar.bz2 nextpnr-664407089b51e1c66d91ff1ee4aa4d4148bb8f1b.zip |
Add FPGA interchange frontend and backend.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange/arch.h')
-rw-r--r-- | fpga_interchange/arch.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fpga_interchange/arch.h b/fpga_interchange/arch.h index 886978f1..b152bd0e 100644 --- a/fpga_interchange/arch.h +++ b/fpga_interchange/arch.h @@ -199,6 +199,12 @@ inline const BelInfoPOD &bel_info(const ChipInfoPOD *chip_info, BelId bel) return loc_info(chip_info, bel).bel_data[bel.index]; } +inline const PipInfoPOD &pip_info(const ChipInfoPOD *chip_info, PipId pip) +{ + NPNR_ASSERT(pip != PipId()); + return loc_info(chip_info, pip).pip_data[pip.index]; +} + struct BelIterator { const ChipInfoPOD *chip; @@ -742,6 +748,8 @@ struct Arch : ArchAPI<ArchRanges> } char getNameDelimiter() const override { return '/'; } + std::string get_part() const; + // ------------------------------------------------- void setup_byname() const; @@ -1308,6 +1316,8 @@ struct Arch : ArchAPI<ArchRanges> void read_logical_netlist(const std::string &filename); void write_physical_netlist(const std::string &filename) const; void parse_xdc(const std::string &filename); + + std::unordered_set<IdString> io_port_types; }; NEXTPNR_NAMESPACE_END |