From 1436ae21a2d9a214f7585deb2f038ff87ce4862c Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Jun 2018 11:44:28 +0200 Subject: Adding stubs for delay annotation and cell timing lookup Signed-off-by: David Shah --- ice40/arch.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ice40/arch.h') diff --git a/ice40/arch.h b/ice40/arch.h index c1256a41..172541c0 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -755,6 +755,16 @@ struct Arch : BaseCtx std::unordered_set belGraphicsReload; std::unordered_set wireGraphicsReload; std::unordered_set pipGraphicsReload; + + // ------------------------------------------------- + + // Get the delay through a cell from one port to another + delay_t getCellDelay(const CellInfo *cell, IdString fromPort, + IdString toPort) const; + // Get the associated clock to a port, or empty if the port is combinational + IdString getPortClock(const CellInfo *cell, IdString port) const; + // Return true if a port is a clock + bool isClockPort(const CellInfo *cell, IdString port) const; }; NEXTPNR_NAMESPACE_END -- cgit v1.2.3 From 5ca4663294aff1f4af45e9abfffa20c1e44ea017 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Jun 2018 12:21:56 +0200 Subject: Working on the timing budget annnotator Signed-off-by: David Shah --- ice40/arch.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ice40/arch.h') diff --git a/ice40/arch.h b/ice40/arch.h index 172541c0..356f88da 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -758,9 +758,10 @@ struct Arch : BaseCtx // ------------------------------------------------- - // Get the delay through a cell from one port to another - delay_t getCellDelay(const CellInfo *cell, IdString fromPort, - IdString toPort) const; + // Get the delay through a cell from one port to another, returning false + // if no path exists + bool getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort, + delay_t &delay) const; // Get the associated clock to a port, or empty if the port is combinational IdString getPortClock(const CellInfo *cell, IdString port) const; // Return true if a port is a clock -- cgit v1.2.3