From 926c186ec78efb086364a05ba7e83e68fa116301 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Sat, 21 Jul 2018 13:05:09 -0700 Subject: Add Arch::getBudgetOverride() to eliminate hack for COUT --- common/timing.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/timing.cc b/common/timing.cc index 6b4a8b64..9723550b 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -215,12 +215,8 @@ void update_budget(Context *ctx) auto pi = &user.cell->ports.at(user.port); auto it = updates.find(pi); if (it == updates.end()) continue; - user.budget = delays.at(pi) + it->second; - - // HACK HACK HACK - if (net.second->driver.port == ctx->id("COUT")) - user.budget = 0; - // HACK HACK HACK + auto budget = delays.at(pi) + it->second; + user.budget = ctx->getBudgetOverride(net.second->driver, budget); // Post-update check if (ctx->verbose) { -- cgit v1.2.3