power refactor

This commit is contained in:
James Cherry
2020-05-01 21:58:25 -07:00
parent 2bcd61a5df
commit 3dfe27d139
2 changed files with 60 additions and 56 deletions
+7
View File
@@ -161,6 +161,13 @@ protected:
FuncExpr *inferedWhen(FuncExpr *expr,
const LibertyPort *from_port);
LibertyPort *findExprOutPort(FuncExpr *expr);
void findInputDuty(const Pin *to_pin,
const Instance *inst,
FuncExpr *func,
InternalPower *pwr,
// Return values.
float &duty,
FuncExpr *&infered_when);
private:
PwrActivity global_activity_;