diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-13 12:37:23 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-13 12:37:23 +0200 |
commit | 4d7f18dd98a7ef9540a279a8e27cb9dbef355af7 (patch) | |
tree | 28a147e3435cec7ff9cd22950b6b349260d1ec11 /dummy/chip.h | |
parent | 301136db033e6696b7d606f9833474fdd5e77aac (diff) | |
download | nextpnr-4d7f18dd98a7ef9540a279a8e27cb9dbef355af7.tar.gz nextpnr-4d7f18dd98a7ef9540a279a8e27cb9dbef355af7.tar.bz2 nextpnr-4d7f18dd98a7ef9540a279a8e27cb9dbef355af7.zip |
Redesign PosInfo API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'dummy/chip.h')
-rw-r--r-- | dummy/chip.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dummy/chip.h b/dummy/chip.h index e5a6dd56..bc70fa5d 100644 --- a/dummy/chip.h +++ b/dummy/chip.h @@ -42,6 +42,11 @@ struct DelayInfo } }; +struct PosInfo +{ + float x = 0, y = 0; +}; + typedef IdString BelType; typedef IdString PortPin; @@ -108,9 +113,10 @@ struct Chip const std::vector<PipId> &getPipsUphill(WireId wire) const; const std::vector<PipId> &getWireAliases(WireId wire) const; - void getBelPosition(BelId bel, float &x, float &y) const; - void getWirePosition(WireId wire, float &x, float &y) const; - void getPipPosition(PipId pip, float &x, float &y) const; + PosInfo getBelPosition(BelId bel) const; + PosInfo getWirePosition(WireId wire) const; + PosInfo getPipPosition(PipId pip) const; + float estimateDelay(PosInfo src, PosInfo dst) const; std::vector<GraphicElement> getBelGraphics(BelId bel) const; std::vector<GraphicElement> getWireGraphics(WireId wire) const; |