Another stub delay calculation function

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-20 11:53:49 +02:00
parent 1436ae21a2
commit 2a41211ce1
2 changed files with 24 additions and 5 deletions

View File

@ -18,12 +18,27 @@
*/
#include "timing.h"
#include "log.h"
#include <algorithm>
#include <unordered_map>
#include <utility>
#include <algorithm>
#include "log.h"
void assign_budget(Context *ctx, float default_clock = 12e6)
NEXTPNR_NAMESPACE_BEGIN
// Follow a path, returning budget to annotate
static delay_t follow_path(Context *ctx, const PortRef &begin, int path_length,
delay_t slack)
{
if (ctx->getPortClock(begin.cell, begin.port) != IdString()) {
return slack / path_length;
} else {
// ...
}
}
void assign_budget(Context *ctx, float default_clock)
{
// TODO
}
NEXTPNR_NAMESPACE_END

View File

@ -22,7 +22,11 @@
#include "nextpnr.h"
NEXTPNR_NAMESPACE_BEGIN
// Assign "budget" values for all user ports in the design
void assign_budget(Context *ctx, float default_clock = 12e6);
#endif TIMING_H
NEXTPNR_NAMESPACE_END
#endif