From adc1a86648453b6bbc96ed6c3eb9d1ac0cdc0bbc Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Mon, 23 Jul 2018 19:25:00 -0700 Subject: Oops --- common/router1.cc | 2 +- common/timing.cc | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'common') diff --git a/common/router1.cc b/common/router1.cc index f4f0d75b..dbf97af7 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -613,7 +613,7 @@ bool router1(Context *ctx) std::unordered_set normalRouteNets, ripupQueue; - if (iterCnt == 1 && ctx->verbose) + if (ctx->verbose || iterCnt == 1) log_info("routing queue contains %d jobs.\n", int(jobQueue.size())); update_budget(ctx); diff --git a/common/timing.cc b/common/timing.cc index dd0bf52a..53b2f132 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -174,16 +174,8 @@ void update_budget(Context *ctx) if (port.second.type == PORT_OUT) { IdString clock_domain = ctx->getPortClock(cell.second.get(), port.first); if (clock_domain != IdString()) { - auto net = port.second.net; - if (net) { - delay_t delay = 0; - if (port.second.name != net->driver.port) { - const auto& users = net->users; - auto it = std::find_if(users.begin(), users.end(), [&port](const PortRef& pr) { return pr.port == port.second.name; }); - delay = ctx->getNetinfoRouteDelay(net, std::distance(users.begin(), it)); - } - follow_net_update(ctx, net, 0, delay_t(1.0e12 / ctx->target_freq - delay), updates); - } + if (port.second.net) + follow_net_update(ctx, port.second.net, 0, delay_t(1.0e12 / ctx->target_freq), updates); } } } @@ -192,7 +184,7 @@ void update_budget(Context *ctx) // Update the budgets for (auto &net : ctx->nets) { for (size_t i = 0; i < net.second->users.size(); ++i) { - auto user = net.second->users[i]; + auto& user = net.second->users[i]; auto pi = &user.cell->ports.at(user.port); auto it = updates.find(pi); if (it == updates.end()) continue; -- cgit v1.2.3