Last change
on this file since 132 was
124,
checked in by rosiere, 15 years ago
|
1) Add test and configuration
2) Fix Bug
3) Add log file in load store unit
4) Fix Bug in environment
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
491 bytes
|
Rev | Line | |
---|
[71] | 1 | #ifdef STATISTICS |
---|
| 2 | #include "Behavioural/include/Stat.h" |
---|
[113] | 3 | #include "Common/include/Systemc.h" |
---|
[71] | 4 | |
---|
| 5 | namespace morpheo { |
---|
| 6 | namespace behavioural { |
---|
| 7 | void Stat::end_cycle (void) |
---|
| 8 | { |
---|
[113] | 9 | cycle_t _cycle_sum = simulation_cycle(); |
---|
[71] | 10 | |
---|
| 11 | if (_cycle_sum >= _nb_cycle_before_begin) |
---|
| 12 | { |
---|
| 13 | (*_cycle) ++; |
---|
| 14 | |
---|
| 15 | eval_exprs(true); |
---|
| 16 | |
---|
| 17 | test_and_save(false); |
---|
| 18 | } |
---|
[124] | 19 | else |
---|
| 20 | if ((_cycle_sum+1) == _nb_cycle_before_begin) |
---|
| 21 | { |
---|
| 22 | // Init counter |
---|
| 23 | reset (false); |
---|
| 24 | } |
---|
[71] | 25 | } |
---|
| 26 | }; |
---|
| 27 | }; |
---|
| 28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.