source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interfaces.h @ 44

Last change on this file since 44 was 44, checked in by rosiere, 17 years ago

Modification des classes d'encapsulation des interfaces.
Stable sur tous les composants actuels

File size: 2.9 KB
Line 
1#ifndef morpheo_behavioural_Interfaces_h
2#define morpheo_behavioural_Interfaces_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#include <stdint.h>
12#include <iostream>
13#include <list>
14#include "Behavioural/include/Interface_fifo.h"
15#include "Common/include/ToString.h"
16#include "Common/include/Debug.h"
17#ifdef VHDL
18#include "Behavioural/include/Vhdl.h"
19#endif
20
21using namespace std;
22
23namespace morpheo              {
24namespace behavioural          {
25
26  class Interfaces
27  {
28    // -----[ fields ]----------------------------------------------------
29  private   : const string               _name;
30  private   : list<Interface_fifo*>    * _list_interface;
31
32    // -----[ methods ]---------------------------------------------------
33  public    :                       Interfaces            (string name);
34  public    :                       Interfaces            (const Interfaces & interfaces);
35  public    :                       ~Interfaces           ();
36
37  public    : Interface_fifo *      set_interface         (string         name       
38#ifdef POSITION
39                                                           ,direction_t    direction   
40                                                           ,localisation_t localisation
41#endif
42                                                           );
43#ifdef POSITION
44  public    : Interface_fifo *      set_interface         (string         name        ,
45                                                           direction_t    direction   ,
46                                                           localisation_t localisation,
47                                                           string         comment     );
48#endif
49  private   : string                get_interface         (void);
50  public    :list<Interface_fifo*>* get_interface_list    (void);
51
52#ifdef VHDL
53  public    : void                  set_port              (Vhdl           * & vhdl          );
54#  ifdef VHDL_TESTBENCH
55  private   : void                  get_signal            (list<string>   * & list_signal   );
56  private   : void                  set_signal            (Vhdl           * & vhdl          );
57#  endif
58#endif
59#ifdef VHDL_TESTBENCH
60  private   : uint32_t              get_cycle             (void);
61  private   : Signal *              get_clock             (void);
62  private   : Signal *              get_reset             (void);
63
64  private   : void                  testbench_generate_file (void);
65  public    : void                  testbench             (void);
66  private   : string                testbench_body        (Vhdl           * & vhdl          ,
67                                                           string             counter_name  ,
68                                                           string             reset_name    );
69#endif
70
71  public    : Interface_fifo  *     find_interface        (string name);
72  public    : Signal          *     find_signal           (string name);
73  public    : bool                  find_signal           (Signal * signal);
74
75#ifdef POSITION
76  public    : XML                   toXML                 (void);
77  public    : XML                   toXML_mapping         (void);
78#endif
79  public    : friend ostream&       operator<<            (ostream& output_stream,
80                                                           morpheo::behavioural::Interfaces & x);
81
82  };
83
84}; // end namespace behavioural         
85}; // end namespace morpheo             
86
87#endif
Note: See TracBrowser for help on using the repository browser.