diff options
author | David Shah <dave@ds0.me> | 2018-11-02 13:35:59 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-11-12 14:03:58 +0000 |
commit | 122771cac312ddff2735e9c1ecd694c8599027b6 (patch) | |
tree | bfc41999b712f0dbeb08ae036867a985958cff90 /docs | |
parent | 3ca02cc55c543829ab608b82af79f3747bc2c808 (diff) | |
download | nextpnr-122771cac312ddff2735e9c1ecd694c8599027b6.tar.gz nextpnr-122771cac312ddff2735e9c1ecd694c8599027b6.tar.bz2 nextpnr-122771cac312ddff2735e9c1ecd694c8599027b6.zip |
timing: iCE40 Arch API changes for clocking info
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/archapi.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/archapi.md b/docs/archapi.md index 73443c15..6b22c6df 100644 --- a/docs/archapi.md +++ b/docs/archapi.md @@ -455,11 +455,17 @@ Cell Delay Methods Returns the delay for the specified path through a cell in the `&delay` argument. The method returns false if there is no timing relationship from `fromPort` to `toPort`. -### TimingPortClass getPortTimingClass(const CellInfo *cell, IdString port, IdString &clockPort) const +### TimingPortClass getPortTimingClass(const CellInfo *cell, IdString port, int &clockInfoCount) const Return the _timing port class_ of a port. This can be a register or combinational input or output; clock input or -output; general startpoint or endpoint; or a port ignored for timing purposes. For register ports, clockPort is set -to the associated clock port. +output; general startpoint or endpoint; or a port ignored for timing purposes. For register ports, clockInfoCount is set +to the number of associated _clock edges_ that can be queried by getPortClockingInfo. + +### TimingClockingInfo getPortClockingInfo(const CellInfo *cell, IdString port, int index) const + +Return the _clocking info_ (including port name of clock, clock polarity and setup/hold/clock-to-out times) of a +port. Where ports have more than one clock edge associated with them (such as DDR outputs), `index` can be used to obtain +information for all edges. `index` must be in [0, clockInfoCount), behaviour is undefined otherwise. Placer Methods -------------- |