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 @ 121

Last change on this file since 121 was 112, checked in by rosiere, 16 years ago

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[78]1/*
2 * $Id: Free_List_unit_deallocation.cpp 112 2009-03-18 22:36:26Z 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"
[112]9#include "Behavioural/include/Allocation.h"
[78]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
[88]27    if (usage_is_set(_usage,USE_SYSTEMC))
[78]28      {
29        delete    in_CLOCK ;
30        delete    in_NRESET;
31
[112]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);
[78]38
[112]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);
[78]42
[112]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);
[88]46
[112]47        DELETE1(_gpr_list             ,_param->_nb_bank);
48        DELETE1(_spr_list             ,_param->_nb_bank);
49
50        DELETE1(internal_POP_ACK      ,_param->_nb_pop);
51        DELETE1(internal_POP_GPR_BANK ,_param->_nb_pop);
52        DELETE1(internal_POP_SPR_BANK ,_param->_nb_pop);
53
54        DELETE1(internal_PUSH_GPR_ACK ,_param->_nb_push);
55        DELETE1(internal_PUSH_SPR_ACK ,_param->_nb_push);
56        DELETE1(internal_PUSH_GPR_BANK,_param->_nb_push);
57        DELETE1(internal_PUSH_SPR_BANK,_param->_nb_push);
[78]58      }
[88]59
[78]60    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
[109]61    delete _priority_gpr;
62    delete _priority_spr;
63   
64    delete _component;
65   
[78]66    log_printf(FUNC,Free_List_unit,FUNCTION,"End");
67  };
68
69}; // end namespace free_list_unit
70}; // end namespace register_translation_unit
71}; // end namespace rename_unit
72}; // end namespace ooo_engine
73}; // end namespace multi_ooo_engine
74}; // end namespace core
75
76}; // end namespace behavioural
77}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.