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:
804 bytes
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | #include "Behavioural/include/Stat.h" |
---|
3 | |
---|
4 | namespace morpheo { |
---|
5 | namespace behavioural { |
---|
6 | |
---|
7 | void Stat::generate_file (void) |
---|
8 | { |
---|
9 | std::string body = print(1); |
---|
10 | |
---|
11 | cycle_t _cycle_sum = sc_simulation_time(); |
---|
12 | |
---|
13 | morpheo::behavioural::XML * xml = new morpheo::behavioural::XML (_name_instance); |
---|
14 | |
---|
15 | xml->balise_open_begin("statistics"); |
---|
16 | xml->attribut("nb_cycle_before_begin",toString(_nb_cycle_before_begin)); |
---|
17 | xml->attribut("period",toString(_period)); |
---|
18 | xml->attribut("nb_cycle_simulation",toString(_cycle_sum)); |
---|
19 | xml->attribut("nb_cycle_statistics",toString(_cycle_sum-_nb_cycle_before_begin)); |
---|
20 | xml->balise_open_end(); |
---|
21 | |
---|
22 | xml->text (body); |
---|
23 | |
---|
24 | xml->balise_close(); |
---|
25 | |
---|
26 | xml->filename_extension ("stat"); |
---|
27 | xml->generate_file(); |
---|
28 | |
---|
29 | delete xml; |
---|
30 | } |
---|
31 | }; |
---|
32 | }; |
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.