@@ -53,14 +53,13 @@ public interface DelayModel {
5353 /**
5454 * Get the delay in ps between two bel pins within the given site name.
5555 *
56- * @param siteTypeName The name of the site type , such as SLICEL and SLICEM.
56+ * @param siteType The SiteTypeEnum of BEL site, such as SLICEL and SLICEM.
5757 * @param frBelPin The bel pin which is the driver of the connection. Thus, it must be a bel output pin.
5858 * The bel name must be included, ie., AFF2/D. An input site pin is considered a valid frBelPin.
5959 * @param toBelPin The bel pin which is the sink of the connection (a bel input pin, or an output site pin).
60- * @return Intra-site delay in ps. Return -1 if the connection does not exist.
61- * @throws IllegalArgumentException if the given siteTypeName is not recognized by the model.
60+ * @return Intra-site delay in ps. Return null if the connection does not exist.
6261 */
63- public Short getIntraSiteDelay (SiteTypeEnum siteTypeName , String frBelPin , String toBelPin );
62+ public Short getIntraSiteDelay (SiteTypeEnum siteType , String frBelPin , String toBelPin );
6463
6564 /**
6665 * Get the delay between input and output pins of a bel.
@@ -74,8 +73,7 @@ public interface DelayModel {
7473 * Where to get the config's value from the design?
7574 * There is no uniform way to find the value. It is to determined per case.
7675 * For example, some configs of carry8 is from bel, while some from cell.
77- * @return Logic delay in ps. Return -1 if the connection does not exist.
78- * @throws IllegalArgumentException if the given bel is not recognized by the model.
76+ * @return Logic delay in ps. Return null if the connection does not exist.
7977 */
8078 public Short getLogicDelay (short belIdx , String frBelPin , String toBelPin , int encodedConfig );
8179
@@ -85,8 +83,7 @@ public interface DelayModel {
8583 * @param belIdx The unique BEL timing model index, see {@link #getBELIndex(String)}.
8684 * @param frBelPin An input bel pin. It must NOT include bel name.
8785 * @param toBelPin An output bel pin. It must NOT include bel name.
88- * @return Logic delay in ps. Return -1 if the connection does not exist.
89- * @throws IllegalArgumentException if the given bel is not recognized by the model.
86+ * @return Logic delay in ps. Return null if the connection does not exist.
9087 */
9188 public Short getLogicDelay (short belIdx , String frBelPin , String toBelPin );
9289
0 commit comments