Last change
on this file since 71 was
71,
checked in by rosiere, 16 years ago
|
Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)
|
-
Property svn:executable set to
*
|
File size:
543 bytes
|
Rev | Line | |
---|
[71] | 1 | #ifdef STATISTICS |
---|
| 2 | #include "Behavioural/include/Stat.h" |
---|
| 3 | |
---|
| 4 | namespace morpheo { |
---|
| 5 | namespace behavioural { |
---|
| 6 | void Stat::create_expr (std::string varname, std::string expr, bool each_cycle) |
---|
| 7 | { |
---|
| 8 | if (is_valid_var (varname)) |
---|
| 9 | throw(ERRORMORPHEO("Stat::create_expr",_("Variable is not valid."))); |
---|
| 10 | |
---|
| 11 | expr_t expression; |
---|
| 12 | |
---|
| 13 | expression.variable = (*_list_operand) [varname].counter; |
---|
| 14 | expression.expression = string2tree(expr); |
---|
| 15 | expression.each_cycle = each_cycle; |
---|
| 16 | |
---|
| 17 | _list_expr->push_back(expression); |
---|
| 18 | } |
---|
| 19 | }; |
---|
| 20 | }; |
---|
| 21 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.