diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-14 12:43:00 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-14 12:43:00 +0200 |
commit | 7787ce5fd934b2d794e1fa15b6e8007ed07080e6 (patch) | |
tree | 4e913bc1c70148029316d282d37a8d509f3d8c03 /ice40/chip.h | |
parent | b1cbae1293fecf3ba14a7ce073d26dcfb07177f0 (diff) | |
download | nextpnr-7787ce5fd934b2d794e1fa15b6e8007ed07080e6.tar.gz nextpnr-7787ce5fd934b2d794e1fa15b6e8007ed07080e6.tar.bz2 nextpnr-7787ce5fd934b2d794e1fa15b6e8007ed07080e6.zip |
Refactor position/delay estimation API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/chip.h')
-rw-r--r-- | ice40/chip.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ice40/chip.h b/ice40/chip.h index 6700666f..54e8e368 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -42,11 +42,6 @@ struct DelayInfo } }; -struct PosInfo -{ - float x = 0, y = 0; -}; - // ----------------------------------------------------------------------- enum BelType @@ -693,10 +688,8 @@ struct Chip // ------------------------------------------------- - PosInfo getBelPosition(BelId bel) const; - PosInfo getWirePosition(WireId wire) const; - PosInfo getPipPosition(PipId pip) const; - float estimateDelay(PosInfo src, PosInfo dst) const; + bool estimatePosition(BelId bel, float &x, float &y) const; + float estimateDelay(WireId src, WireId dst) const; // ------------------------------------------------- |