diff options
author | David Shah <davey1576@gmail.com> | 2018-11-15 11:26:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 11:26:08 +0000 |
commit | 9472b6d78f68544d430feeae6d75dbd2dc43019d (patch) | |
tree | 0ab6b20c90d4a93cd9e2d0c14bdadb296e159cdc /common/place_common.cc | |
parent | d3b2065cd7d2470a132c055f4bd88d270e1e8fe1 (diff) | |
parent | 9f9b242cf0a3b587df8f5b0eb542ca7256ca0eb9 (diff) | |
download | nextpnr-9472b6d78f68544d430feeae6d75dbd2dc43019d.tar.gz nextpnr-9472b6d78f68544d430feeae6d75dbd2dc43019d.tar.bz2 nextpnr-9472b6d78f68544d430feeae6d75dbd2dc43019d.zip |
Merge pull request #103 from YosysHQ/timingapi
Timing constraints API, multiple clock domains
Diffstat (limited to 'common/place_common.cc')
-rw-r--r-- | common/place_common.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/place_common.cc b/common/place_common.cc index 4cb5ae11..a13a963c 100644 --- a/common/place_common.cc +++ b/common/place_common.cc @@ -36,8 +36,8 @@ wirelen_t get_net_metric(const Context *ctx, const NetInfo *net, MetricType type bool driver_gb = ctx->getBelGlobalBuf(driver_cell->bel); if (driver_gb) return 0; - IdString clock_port; - bool timing_driven = ctx->timing_driven && type == MetricType::COST && ctx->getPortTimingClass(driver_cell, net->driver.port, clock_port) != TMG_IGNORE; + int clock_count; + bool timing_driven = ctx->timing_driven && type == MetricType::COST && ctx->getPortTimingClass(driver_cell, net->driver.port, clock_count) != TMG_IGNORE; delay_t negative_slack = 0; delay_t worst_slack = std::numeric_limits<delay_t>::max(); Loc driver_loc = ctx->getBelLocation(driver_cell->bel); |