google / google/xls

FFI: In absence of externally provided timing, use delay-model as estimate

Open
#1,399 0 comments 0 reactions 0 assignees View on GitHub
enhancement ffi
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

Right now, the estimated time for ffi is provided by a delay model, but that is typically not generated for external FFI functions, so it falls back to the `ffi_fallback_delay_ps` codegen parameter which is an estimate by the user and thus possibly pretty far off. Pipeline schedule will only be as good as the estimate of the parts.

As an alternative, if there is no accurate delay model characterization of the external module, we should use the delay we can determine from the IR for that particular function (as we always have that as fllaback). Even though it is not the same implementation as the external FFI module, it will provide a better estimate assuming similar implementation algorithms.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.