source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Ifetch_queue_deallocation.cpp @ 78

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

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 2.4 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Ifetch_queue.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace ifetch_unit {
16namespace ifetch_queue {
17
18
19#undef  FUNCTION
20#define FUNCTION "Ifetch_queue::deallocation"
21  void Ifetch_queue::deallocation (void)
22  {
23    log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
24
25    if (_usage & USE_SYSTEMC)
26      {
27        delete    in_CLOCK ;
28        delete    in_NRESET;
29
30        delete     in_ADDRESS_VAL                        ;
31        delete    out_ADDRESS_ACK                        ;
32        if (_param->_have_port_queue_ptr)
33        delete    out_ADDRESS_IFETCH_QUEUE_ID            ;
34        delete []  in_ADDRESS_INSTRUCTION_ENABLE         ;
35        delete     in_ADDRESS_INSTRUCTION_ADDRESS        ;
36        if (_param->_have_port_instruction_ptr)
37        delete     in_ADDRESS_INST_IFETCH_PTR            ;
38        delete     in_ADDRESS_BRANCH_STATE               ;
39        if (_param->_have_port_branch_update_prediction_id)
40        delete     in_ADDRESS_BRANCH_UPDATE_PREDICTION_ID;
41        delete [] out_DECOD_VAL                          ;
42        delete []  in_DECOD_ACK                          ;
43        delete [] out_DECOD_INSTRUCTION                  ;
44        delete    out_DECOD_ADDRESS                      ;
45        if (_param->_have_port_instruction_ptr)
46        delete    out_DECOD_INST_IFETCH_PTR              ;
47        delete    out_DECOD_BRANCH_STATE                 ;
48        if (_param->_have_port_branch_update_prediction_id)
49        delete    out_DECOD_BRANCH_UPDATE_PREDICTION_ID  ;
50        delete    out_DECOD_EXCEPTION                    ;
51        delete     in_ICACHE_RSP_VAL                     ;
52        delete    out_ICACHE_RSP_ACK                     ;
53        if (_param->_have_port_queue_ptr)
54        delete     in_ICACHE_RSP_PACKET_ID               ;
55        delete []  in_ICACHE_RSP_INSTRUCTION             ;
56        delete     in_ICACHE_RSP_ERROR                   ;
57        delete     in_EVENT_RESET_VAL                    ;
58        delete    out_EVENT_RESET_ACK                    ;
59      }
60    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
61
62    delete    internal_DECOD_VAL;
63    delete [] _queue;
64    delete    _component;
65
66    log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
67  };
68
69}; // end namespace ifetch_queue
70}; // end namespace ifetch_unit
71}; // end namespace front_end
72}; // end namespace multi_front_end
73}; // end namespace core
74
75}; // end namespace behavioural
76}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.