1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Free_List_unit_genMoore.cpp 123 2009-06-08 20:43:30Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Free_List_unit.h" |
---|
10 | |
---|
11 | # ifdef DEBUG_TEST |
---|
12 | |
---|
13 | namespace morpheo { |
---|
14 | namespace behavioural { |
---|
15 | namespace core { |
---|
16 | namespace multi_ooo_engine { |
---|
17 | namespace ooo_engine { |
---|
18 | namespace rename_unit { |
---|
19 | namespace register_translation_unit { |
---|
20 | namespace free_list_unit { |
---|
21 | |
---|
22 | |
---|
23 | #undef FUNCTION |
---|
24 | #define FUNCTION "Free_List_unit::genMoore" |
---|
25 | void Free_List_unit::genMoore (void) |
---|
26 | { |
---|
27 | log_begin(Free_List_unit,FUNCTION); |
---|
28 | log_function(Free_List_unit,FUNCTION,_name.c_str()); |
---|
29 | |
---|
30 | // if (PORT_READ(in_NRESET)) |
---|
31 | { |
---|
32 | uint32_t gpr = 0; |
---|
33 | uint32_t spr = 0; |
---|
34 | |
---|
35 | for (uint32_t i=0; i<_param->_nb_bank; i++) |
---|
36 | { |
---|
37 | gpr += _gpr_list[i].size(); |
---|
38 | spr += _spr_list[i].size(); |
---|
39 | } |
---|
40 | |
---|
41 | PORT_WRITE(out_INFO_NB_GPR_FREE, gpr); |
---|
42 | PORT_WRITE(out_INFO_NB_SPR_FREE, spr); |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | log_end(Free_List_unit,FUNCTION); |
---|
47 | }; |
---|
48 | |
---|
49 | }; // end namespace free_list_unit |
---|
50 | }; // end namespace register_translation_unit |
---|
51 | }; // end namespace rename_unit |
---|
52 | }; // end namespace ooo_engine |
---|
53 | }; // end namespace multi_ooo_engine |
---|
54 | }; // end namespace core |
---|
55 | |
---|
56 | }; // end namespace behavioural |
---|
57 | }; // end namespace morpheo |
---|
58 | # endif |
---|
59 | #endif |
---|