Skip to content

Commit

Permalink
Initialize area stats in stat pass
Browse files Browse the repository at this point in the history
Currently, the area variables in the stat struct are not initialized.
This caused the area stats occasionally being an erroneous value.

Signed-off-by: Hoa Nguyen <[email protected]>
  • Loading branch information
hnpl committed Sep 8, 2024
1 parent dcf9f58 commit c1205eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions passes/cmds/stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ struct statdata_t
#define X(_name) unsigned int _name;
STAT_INT_MEMBERS
#undef X
double area;
double sequential_area;
double area = 0;
double sequential_area = 0;
string tech;

std::map<RTLIL::IdString, int> techinfo;
Expand Down

0 comments on commit c1205eb

Please sign in to comment.