aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-01 15:58:38 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-01 15:58:38 +0200
commit0658759495d25fe5d1ffa8d58f86214ccd0e98d9 (patch)
treeb3601585659f692eb3bede0c4b5c0d57a5b41956 /ecp5/arch.cc
parent534465d3ad5a2d42766088418eb37f88b029b195 (diff)
downloadnextpnr-0658759495d25fe5d1ffa8d58f86214ccd0e98d9.tar.gz
nextpnr-0658759495d25fe5d1ffa8d58f86214ccd0e98d9.tar.bz2
nextpnr-0658759495d25fe5d1ffa8d58f86214ccd0e98d9.zip
ecp5: Remove libtrellis link for bitstream gen
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc11
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