aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.cc
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2021-01-30 23:14:48 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit5415194b39c0e7ade963f5c52f2977f00ed5feeb (patch)
tree305c2872b0da585a025705d13d3207028aa21f5d /machxo2/arch.cc
parentcf2db7a4c474569d372c176e9790dd4f6ae24a03 (diff)
downloadnextpnr-5415194b39c0e7ade963f5c52f2977f00ed5feeb.tar.gz
nextpnr-5415194b39c0e7ade963f5c52f2977f00ed5feeb.tar.bz2
nextpnr-5415194b39c0e7ade963f5c52f2977f00ed5feeb.zip
machxo2: Checkpoint commit for slice bitstream generation.
Diffstat (limited to 'machxo2/arch.cc')
-rw-r--r--machxo2/arch.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc
index dbe17fd9..101ceae7 100644
--- a/machxo2/arch.cc
+++ b/machxo2/arch.cc
@@ -518,4 +518,15 @@ void Arch::assignArchInfo() {}
bool Arch::cellsCompatible(const CellInfo **cells, int count) 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