source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/include/Sort.h @ 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: 3.8 KB
Line 
1#ifndef morpheo_behavioural_generic_sort_Sort_h
2#define morpheo_behavioural_generic_sort_Sort_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#ifdef SYSTEMC
12#include "systemc.h"
13#endif
14
15#include <iostream>
16#include "Common/include/ToString.h"
17#include "Common/include/Debug.h"
18
19#include "Behavioural/Generic/Sort/include/Types.h"
20#include "Behavioural/Generic/Sort/include/Parameters.h"
21#ifdef STATISTICS
22#include "Behavioural/include/Stat.h"
23#endif
24#include "Behavioural/include/Component.h"
25#ifdef VHDL
26#include "Behavioural/include/Vhdl.h"
27#endif
28#include "Behavioural/include/Usage.h"
29
30namespace morpheo {
31namespace behavioural {
32
33namespace generic {
34namespace sort {
35
36
37  class Sort
38#if SYSTEMC
39    : public sc_module
40#endif
41  {
42    // -----[ fields ]----------------------------------------------------
43    // Parameters
44  protected : const std::string  _name;
45  protected : const Parameters * _param;
46  private   : const Tusage_t     _usage;
47
48#ifdef STATISTICS
49  public    : Stat                           * _stat;
50#endif
51
52  public    : Component                      * _component;
53  private   : Interfaces                     * _interfaces;
54
55#ifdef SYSTEMC
56    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58  public    : SC_CLOCK                      *  in_CLOCK        ;
59  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
60
61    // ~~~~~[ Interface : "input" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62  public    : SC_IN    (Tcontrol_t)         **  in_INPUT_VAL   ;
63  public    : SC_IN    (Tdata_t   )         **  in_INPUT_DATA  ;
64
65    // ~~~~~[ Interface : "output" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66  public    : SC_OUT   (Tcontrol_t)         ** out_OUTPUT_VAL  ;
67  public    : SC_OUT   (Taddress_t)         ** out_OUTPUT_INDEX;
68  public    : SC_OUT   (Tdata_t   )         ** out_OUTPUT_DATA  ;
69
70    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
71
72    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
73
74    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75#endif
76
77    // -----[ Methods ]---------------------------------------------------
78
79#ifdef SYSTEMC
80    SC_HAS_PROCESS (Sort);
81#endif
82  public  :          Sort             
83  (
84#ifdef SYSTEMC
85   sc_module_name                                name,
86#else                                         
87   std::string                                   name,
88#endif                                         
89#ifdef STATISTICS
90   morpheo::behavioural::Parameters_Statistics * param_statistics,
91#endif
92   Parameters                                  * param,
93   morpheo::behavioural::Tusage_t                usage=USE_ALL
94   );
95  public  :          ~Sort             (void);
96                                               
97  private : void        allocation                (
98#ifdef STATISTICS
99                                                   morpheo::behavioural::Parameters_Statistics * param_statistics
100#else
101                                                   void
102#endif
103                                                   );
104  private : void        deallocation              (void);
105                                               
106#ifdef SYSTEMC                                 
107# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
108  public  : void        transition                (void);
109# endif
110  public  : void        genMealy                  (void);
111#endif                                         
112
113#if VHDL                                       
114  public  : void        vhdl                      (void);
115  private : void        vhdl_declaration          (Vhdl * & vhdl);
116  private : void        vhdl_body                 (Vhdl * & vhdl);
117#endif                                         
118
119#ifdef STATISTICS
120  public  : void        statistics_allocation     (morpheo::behavioural::Parameters_Statistics * param_statistics);
121  public  : void        statistics_deallocation   (void);
122#endif
123#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
124  private : void        end_cycle                 (void);
125#endif
126  };
127
128}; // end namespace sort
129}; // end namespace generic
130
131}; // end namespace behavioural
132}; // end namespace morpheo             
133
134#endif
Note: See TracBrowser for help on using the repository browser.