diff options
Diffstat (limited to 'common/timing.cc')
-rw-r--r-- | common/timing.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/timing.cc b/common/timing.cc index ae164d20..814b0426 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -94,6 +94,9 @@ void assign_budget(Context *ctx) IdString clock_domain = ctx->getPortClock(cell.second.get(), port.first); if (clock_domain != IdString()) { delay_t slack = delay_t(1.0e12 / ctx->target_freq); // TODO: clock constraints + delay_t clkToQ; + if (ctx->getCellDelay(cell.second.get(), clock_domain, port.first, clkToQ)) + slack -= clkToQ; if (port.second.net) follow_net(ctx, port.second.net, 0, slack, updates); } |