- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_create_expr.cpp
r71 r78 4 4 namespace morpheo { 5 5 namespace behavioural { 6 void Stat::create_expr (std::string varname, std::string expr, bool each_cycle) 6 7 void Stat::create_expr (std::string varname, 8 std::string expr, 9 bool each_cycle) 7 10 { 8 11 if (is_valid_var (varname)) … … 17 20 _list_expr->push_back(expression); 18 21 } 22 23 void Stat::create_expr_average (std::string varname, 24 std::string expr_sum, 25 std::string expr_deps, 26 std::string unit, 27 std::string description) 28 { 29 create_counter(varname,unit,description); 30 create_expr (varname, "/ "+expr_sum+" "+expr_deps, false); 31 } 32 33 void Stat::create_expr_average_by_cycle (std::string varname, 34 std::string expr_sum, 35 std::string unit, 36 std::string description) 37 { 38 create_expr_average (varname, expr_sum, "cycle", unit, description); 39 } 40 41 void Stat::create_expr_percent (std::string varname, 42 std::string expr_sum, 43 std::string expr_max, 44 std::string description) 45 { 46 create_counter(varname,"%",description); 47 create_expr (varname, "/ * "+expr_sum+" 100 "+expr_max, false); 48 } 49 50 19 51 }; 20 52 };
Note: See TracChangeset
for help on using the changeset viewer.