aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-08 10:27:08 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-09 10:39:53 +0200
commit5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0 (patch)
tree3ce490a0df0ddce0487277cee8f55720247f8178 /ice40
parenta9b6543361ba35202cbe6c6c16860c3e8a388bc4 (diff)
downloadnextpnr-5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0.tar.gz
nextpnr-5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0.tar.bz2
nextpnr-5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0.zip
Add pip locations
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index 561d75c3..4c093ef9 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -418,7 +418,8 @@ struct Arch : BaseCtx
int getGridDimX() const { return 34; }
int getGridDimY() const { return 34; }
- int getTileDimZ(int, int) const { return 8; }
+ int getTileBelDimZ(int, int) const { return 8; }
+ int getTilePipDimZ(int, int) const { return 1; }
// -------------------------------------------------
@@ -680,6 +681,15 @@ struct Arch : BaseCtx
return range;
}
+ Loc getPipLocation(PipId pip) const
+ {
+ Loc loc;
+ loc.x = chip_info->pip_data[pip.index].x;
+ loc.y = chip_info->pip_data[pip.index].y;
+ loc.z = 0;
+ return loc;
+ }
+
IdString getPipName(PipId pip) const;
IdString getPipType(PipId pip) const { return IdString(); }