From 4158093235265aa60dac0d232b2f92a4c2161ba1 Mon Sep 17 00:00:00 2001 From: PunchShadow Date: Sat, 8 Aug 2020 21:12:27 +0800 Subject: [PATCH] Fix cacti return type error --- cacti/powergating.cc | 2 +- cacti/powergating.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cacti/powergating.cc b/cacti/powergating.cc index 8141927..a6e7c93 100644 --- a/cacti/powergating.cc +++ b/cacti/powergating.cc @@ -110,7 +110,7 @@ Sleep_tx::Sleep_tx( } -double Sleep_tx::compute_penalty() +void Sleep_tx::compute_penalty() { //V_delta = VDD - VCCmin nothing to do with threshold of sleep tx. Although it might be OK to use sleep tx to control the V_delta double c_load; diff --git a/cacti/powergating.h b/cacti/powergating.h index 9c8ee36..5885220 100644 --- a/cacti/powergating.h +++ b/cacti/powergating.h @@ -73,7 +73,7 @@ class Sleep_tx : public Component // void compute_area(); - double compute_penalty(); // return outrisetime + void compute_penalty(); // return outrisetime void leakage_feedback(double temperature){}; ~Sleep_tx(){};