source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Entity.h @ 57

Last change on this file since 57 was 57, checked in by rosiere, 17 years ago
  • VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
  • SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
  • Séminaire interne
File size: 2.9 KB
RevLine 
[31]1#ifndef morpheo_behavioural_Entity_h
2#define morpheo_behavioural_Entity_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#include <stdint.h>
12#include <iostream>
13#include <list>
[42]14//#include "Behavioural/include/Description.h"
[31]15#include "Behavioural/include/Interfaces.h"
16#include "Behavioural/include/Schema.h"
[44]17#include "Common/include/ErrorMorpheo.h"
18#include "Common/include/ToString.h"
19#include "Common/include/Debug.h"
[57]20#include "Behavioural/include/Usage.h"
[31]21
22using namespace std;
23
24namespace morpheo              {
25namespace behavioural          {
26
27  class Entity
28  {
29    // -----[ fields ]----------------------------------------------------
30  private   : const string          _name         ;
31  private   : const string          _type         ;
[42]32#ifdef POSITION
[31]33  private   : const schema_t        _schema       ;
[42]34#endif
[57]35  private   : const Tusage_t        _usage;
36
[31]37  private   : Interfaces          * _interfaces   ;
[42]38
39#ifdef POSITION
[31]40  private   : string                _comment      ;
41
42  private   :       bool            _is_map       ;
43  private   :       uint32_t        _map_size_x   ;
44  private   :       uint32_t        _map_size_y   ;
45  private   :       uint32_t        _map_pos_x    ;
46  private   :       uint32_t        _map_pos_y    ;
[42]47#endif
[31]48
49    // -----[ methods ]---------------------------------------------------
[42]50  public    :                       Entity            ( string        name   
51                                                       ,string        type   
52#ifdef POSITION
53                                                       ,schema_t      schema
54#endif
[57]55                                                        ,Tusage_t       usage=USE_ALL
[42]56                                                        );
[31]57  public    :                        Entity           (const Entity & entity);
58  public    :                       ~Entity           ();
59
[42]60  public    : string                get_name          (void);
61  public    : string                get_type          (void);
62
63#ifdef POSITION
[31]64  public    : void                  set_comment       (string comment);
65  private   : string                get_comment       (void          );
[42]66#endif
[31]67  public    : Interfaces *          set_interfaces    (void);
68  private   : string                get_interfaces    (void);
[42]69  public    : Interfaces *          get_interfaces_list(void);
[31]70
71  public    : Interface  *          find_interface    (string name);
[42]72  public    : Signal     *          find_signal       (string name);
73  public    : bool                  find_signal       (Signal * signal);
[31]74
[42]75#ifdef POSITION
[38]76  public    : void                  mapping           (uint32_t pos_x,
77                                                       uint32_t pos_y,
78                                                       uint32_t size_x ,
79                                                       uint32_t size_y );
[42]80#endif
[31]81
[42]82#ifdef POSITION
[31]83  public    : XML                   toXML             (void);
84  public    : XML                   toXML_mapping     (void);
[42]85#endif
[31]86  public    : friend ostream&       operator<<        (ostream& output_stream,
87                                                       morpheo::behavioural::Entity & x);
88  };
89
90}; // end namespace behavioural         
91}; // end namespace morpheo             
92
93#endif
Note: See TracBrowser for help on using the repository browser.