diff options
author | David Shah <davey1576@gmail.com> | 2018-08-02 12:01:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 12:01:07 +0200 |
commit | 81ee55c7eb2f153ba01a6ff8aba2bffc54daa9dc (patch) | |
tree | 917f2f9a4c834660cbdf3a0a1ad86bcbb25067c8 /ecp5/arch.cc | |
parent | 62e61c44e89f39d6ee3852b6bc3cf6eeeb12b7e4 (diff) | |
parent | 0658759495d25fe5d1ffa8d58f86214ccd0e98d9 (diff) | |
download | nextpnr-81ee55c7eb2f153ba01a6ff8aba2bffc54daa9dc.tar.gz nextpnr-81ee55c7eb2f153ba01a6ff8aba2bffc54daa9dc.tar.bz2 nextpnr-81ee55c7eb2f153ba01a6ff8aba2bffc54daa9dc.zip |
Merge pull request #2 from daveshah1/remove_libtrellis
Remove libtrellis link for bitstream gen
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r-- | ecp5/arch.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 6c3714cc..bf05c15d 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -496,4 +496,15 @@ IdString Arch::getPortClock(const CellInfo *cell, IdString port) const { return bool Arch::isClockPort(const CellInfo *cell, IdString port) const { return false; } +std::vector<std::pair<std::string, std::string>> Arch::getTilesAtLocation(int row, int col) +{ + std::vector<std::pair<std::string, std::string>> ret; + auto &tileloc = chip_info->tile_info[row * chip_info->width + col]; + for (int i = 0; i < tileloc.num_tiles; i++) { + ret.push_back(std::make_pair(tileloc.tile_names[i].name.get(), + chip_info->tiletype_names[tileloc.tile_names[i].type_idx].get())); + } + return ret; +} + NEXTPNR_NAMESPACE_END |