aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-09 10:49:11 +0200
committerGitHub <noreply@github.com>2018-08-09 10:49:11 +0200
commited602baa06959ae69cc97fa9e38ce7e9d6c7cd5f (patch)
treee5bb285ea62df09c30f7cd6dce7c2fe0fcb97f6f /ecp5
parent41e05c95aae3b9d3397ec28d8836c40d089386e2 (diff)
parent834f7e4bfdbfaa8fbb3b51cef18c734176215c83 (diff)
downloadnextpnr-ed602baa06959ae69cc97fa9e38ce7e9d6c7cd5f.tar.gz
nextpnr-ed602baa06959ae69cc97fa9e38ce7e9d6c7cd5f.tar.bz2
nextpnr-ed602baa06959ae69cc97fa9e38ce7e9d6c7cd5f.zip
Merge pull request #42 from YosysHQ/floorplan
Add basic data structures for floorplanning
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h
index 3e2f203b..36792625 100644
--- a/ecp5/arch.h
+++ b/ecp5/arch.h
@@ -421,7 +421,8 @@ struct Arch : BaseCtx
int getGridDimX() const { return chip_info->width; };
int getGridDimY() const { return chip_info->height; };
- int getTileDimZ(int, int) const { return 4; };
+ int getTileBelDimZ(int, int) const { return 4; };
+ int getTilePipDimZ(int, int) const { return 1; };
// -------------------------------------------------
@@ -774,6 +775,15 @@ struct Arch : BaseCtx
return chip_info->tiletype_names[locInfo(pip)->pip_data[pip.index].tile_type].get();
}
+ Loc getPipLocation(PipId pip) const
+ {
+ Loc loc;
+ loc.x = pip.location.x;
+ loc.y = pip.location.y;
+ loc.z = 0;
+ return loc;
+ }
+
int8_t getPipClass(PipId pip) const { return locInfo(pip)->pip_data[pip.index].pip_type; }
BelId getPackagePinBel(const std::string &pin) const;