source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h @ 10

Last change on this file since 10 was 10, checked in by rosiere, 17 years ago
File size: 3.7 KB
Line 
1#ifndef morpheo_behavioural_generic_select_priority_fixed_Priority_Fixed_h
2#define morpheo_behavioural_generic_select_priority_fixed_Priority_Fixed_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 "Include/ToString.h"
17#include "Include/Debug.h"
18
19#include "Behavioural/Generic/Select/Priority_Fixed/include/Parameters.h"
20#include "Behavioural/Generic/Select/Priority_Fixed/include/Types.h"
21#ifdef STATISTICS
22#include "Behavioural/Generic/Select/Priority_Fixed/include/Statistics.h"
23#endif
24#ifdef VHDL
25#include "Behavioural/include/Vhdl.h"
26#endif
27#ifdef VHDL_TESTBENCH
28#include "Behavioural/include/Vhdl_Testbench.h"
29#endif
30
31using namespace std;
32
33namespace morpheo {
34namespace behavioural {
35namespace generic {
36namespace select {
37namespace priority_fixed {
38
39
40  class Priority_Fixed
41#if SYSTEMC
42    : public sc_module
43#endif
44  {
45    // -----[ fields ]----------------------------------------------------
46    // Parameters
47  protected : const string     _name;
48
49  protected : const Parameters _param;
50//#ifdef STATISTICS
51//  protected : const morpheo::behavioural::Parameters_Statistics _param_statistics;
52//#endif
53
54#ifdef STATISTICS
55  private   : Statistics                     * _stat;
56#endif
57
58#ifdef VHDL_TESTBENCH
59  private   : Vhdl_Testbench                 * _vhdl_testbench;
60#endif
61
62#ifdef SYSTEMC
63    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64    // Interface
65
66  public    : SC_CLOCK                      *  in_CLOCK        ;
67  public    : SC_IN (Tcontrol_t)           **  in_VAL          ;
68  public    : SC_OUT(Tcontrol_t)           ** out_ACK          ;
69  public    : SC_OUT(Tcontrol_t)            * out_ENTITY_ACK   ;
70  public    : SC_OUT(Tentity_t)             * out_ENTITY       ;
71
72    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
73   
74    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
75
76    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77#endif
78
79    // -----[ methods ]---------------------------------------------------
80
81#ifdef SYSTEMC
82    SC_HAS_PROCESS (Priority_Fixed);
83#endif
84  public  :          Priority_Fixed              (
85#ifdef SYSTEMC
86                                              sc_module_name                              name,
87#else                                         
88                                              string                                      name,
89#endif                                         
90#ifdef STATISTICS
91                                              morpheo::behavioural::Parameters_Statistics param_statistics,
92#endif
93                                              Parameters                                  param );
94                                               
95  public  :          Priority_Fixed              (Parameters param );
96  public  :          ~Priority_Fixed             (void);
97                                               
98#ifdef SYSTEMC                                 
99  private : void     allocation                (void);
100  private : void     deallocation              (void);
101                                               
102#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
103  public  : void     transition                (void);
104#endif
105  public  : void     genMealy_entity           (void);
106#endif                                         
107#ifdef STATISTICS
108  public  : string   statistics                (uint32_t depth);
109#endif
110                                               
111#if VHDL                                       
112  public  : void     vhdl                      (void);
113  private : void     vhdl_port                 (Vhdl & vhdl);
114  private : void     vhdl_declaration          (Vhdl & vhdl);
115  private : void     vhdl_body                 (Vhdl & vhdl);
116#endif                                         
117                                               
118#ifdef VHDL_TESTBENCH                         
119  private : void     vhdl_testbench_transition (void);
120#endif
121  public  : void     vhdl_testbench_label      (string label);
122  };
123
124}; // end namespace priority_fixed
125}; // end namespace select
126}; // end namespace generic
127
128}; // end namespace behavioural
129}; // end namespace morpheo             
130
131#endif
Note: See TracBrowser for help on using the repository browser.