source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue_Control/include/Queue_Control.h @ 101

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

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifndef morpheo_behavioural_generic_queue_control_Queue_Control_h
2#define morpheo_behavioural_generic_queue_control_Queue_Control_h
3
4/*
5 * $Id: Queue_Control.h 101 2009-01-15 17:19:08Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include <iostream>
12#include <vector>
13
14#include "Common/include/ErrorMorpheo.h"
15#include "Common/include/ToString.h"
16#include "Common/include/Debug.h"
17
18namespace morpheo {
19namespace behavioural {
20namespace generic {
21namespace queue_control {
22
23  class Queue_Control
24  {
25  private : const uint32_t     _nb_elt_max;
26  private : uint32_t           _nb_elt;
27  private : std::vector<uint32_t> * _tab;
28   
29  public  :          Queue_Control  (uint32_t nb_elt_max);
30  public  :          ~Queue_Control (void);
31   
32  public  : uint32_t nb_elt   (void);
33  public  : bool     full     (void);
34  public  : bool     empty    (void);
35  public  : void     clear    (void);
36
37  public  : uint32_t ptr_pop  (uint32_t index=0);
38  public  : uint32_t ptr_push (void);
39
40
41  public  : uint32_t push     (void);
42  public  : uint32_t push_ovf (void);
43  public  : void     pop      (uint32_t index);
44  public  : void     pop      (void);
45  public  : void     pop_ovf  (uint32_t index);
46  public  : void     pop_ovf  (void);
47   
48  public : uint32_t operator[] (uint32_t);
49  public : std::ostream& operator<< (std::ostream& output_stream);
50  };
51 
52}; // end namespace queue_control
53}; // end namespace generic
54}; // end namespace behavioural
55}; // end namespace morpheo             
56
57#endif
Note: See TracBrowser for help on using the repository browser.