source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit_deallocation.cpp @ 123

Last change on this file since 123 was 123, checked in by rosiere, 15 years ago

1) Fix performance
2) add auto generation to SPECINT2000
3) add reset in genMoore and genMealy

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1/*
2 * $Id: Free_List_unit_deallocation.cpp 123 2009-06-08 20:43:30Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Free_List_unit.h"
9#include "Behavioural/include/Allocation.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace register_translation_unit {
18namespace free_list_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Free_List_unit::deallocation"
23  void Free_List_unit::deallocation (void)
24  {
25    log_printf(FUNC,Free_List_unit,FUNCTION,"Begin");
26
27    if (usage_is_set(_usage,USE_SYSTEMC))
28      {
29        delete    in_CLOCK ;
30        delete    in_NRESET;
31
32        DELETE1_SIGNAL( in_POP_VAL         ,_param->_nb_pop,1);
33        DELETE1_SIGNAL(out_POP_ACK         ,_param->_nb_pop,1);
34        DELETE1_SIGNAL( in_POP_GPR_VAL     ,_param->_nb_pop,1                             );
35        DELETE1_SIGNAL(out_POP_GPR_NUM_REG ,_param->_nb_pop,_param->_size_general_register);
36        DELETE1_SIGNAL( in_POP_SPR_VAL     ,_param->_nb_pop,1                             );
37        DELETE1_SIGNAL(out_POP_SPR_NUM_REG ,_param->_nb_pop,_param->_size_special_register);
38
39        DELETE1_SIGNAL( in_PUSH_GPR_VAL    ,_param->_nb_push,1);
40        DELETE1_SIGNAL(out_PUSH_GPR_ACK    ,_param->_nb_push,1);
41        DELETE1_SIGNAL( in_PUSH_GPR_NUM_REG,_param->_nb_push,_param->_size_general_register);
42
43        DELETE1_SIGNAL( in_PUSH_SPR_VAL    ,_param->_nb_push,1);
44        DELETE1_SIGNAL(out_PUSH_SPR_ACK    ,_param->_nb_push,1);
45        DELETE1_SIGNAL( in_PUSH_SPR_NUM_REG,_param->_nb_push,_param->_size_special_register);
46
47#ifdef DEBUG_TEST
48        DELETE0_SIGNAL(out_INFO_NB_GPR_FREE,_param->_size_general_register+1);
49        DELETE0_SIGNAL(out_INFO_NB_SPR_FREE,_param->_size_special_register+1);
50#endif
51
52        DELETE1(_gpr_list             ,_param->_nb_bank);
53        DELETE1(_spr_list             ,_param->_nb_bank);
54
55        DELETE1(internal_POP_ACK      ,_param->_nb_pop);
56        DELETE1(internal_POP_GPR_BANK ,_param->_nb_pop);
57        DELETE1(internal_POP_SPR_BANK ,_param->_nb_pop);
58
59        DELETE1(internal_PUSH_GPR_ACK ,_param->_nb_push);
60        DELETE1(internal_PUSH_SPR_ACK ,_param->_nb_push);
61        DELETE1(internal_PUSH_GPR_BANK,_param->_nb_push);
62        DELETE1(internal_PUSH_SPR_BANK,_param->_nb_push);
63      }
64
65    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
66    delete _priority_gpr;
67    delete _priority_spr;
68   
69    delete _component;
70   
71    log_printf(FUNC,Free_List_unit,FUNCTION,"End");
72  };
73
74}; // end namespace free_list_unit
75}; // end namespace register_translation_unit
76}; // end namespace rename_unit
77}; // end namespace ooo_engine
78}; // end namespace multi_ooo_engine
79}; // end namespace core
80
81}; // end namespace behavioural
82}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.