Last change
on this file since 137 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id: Write_unit_statistics_declaration.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/include/Write_unit.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_execute_loop { |
---|
15 | namespace execute_loop { |
---|
16 | namespace multi_write_unit { |
---|
17 | namespace write_unit { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Write_unit::statistics_declaration" |
---|
22 | void Write_unit::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
23 | { |
---|
24 | log_printf(FUNC,Write_unit,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | _stat = new Stat (static_cast<std::string>(_name), |
---|
27 | _param->_type, |
---|
28 | param_statistics); |
---|
29 | |
---|
30 | if (usage_is_set(component_write_queue->_usage,USE_STATISTICS)) |
---|
31 | _stat->add_stat(component_write_queue->_stat); |
---|
32 | |
---|
33 | if (_param->_have_component_execute_queue and (usage_is_set(component_execute_queue->_usage,USE_STATISTICS))) |
---|
34 | _stat->add_stat(component_execute_queue->_stat); |
---|
35 | |
---|
36 | log_printf(FUNC,Write_unit,FUNCTION,"End"); |
---|
37 | }; |
---|
38 | |
---|
39 | }; // end namespace write_unit |
---|
40 | }; // end namespace multi_write_unit |
---|
41 | }; // end namespace execute_loop |
---|
42 | }; // end namespace multi_execute_loop |
---|
43 | }; // end namespace core |
---|
44 | |
---|
45 | }; // end namespace behavioural |
---|
46 | }; // end namespace morpheo |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.