Ignore:
Timestamp:
Sep 28, 2007, 2:58:08 PM (17 years ago)
Author:
rosiere
Message:
  • 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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Component.h

    r44 r57  
    2020#include "Common/include/ToString.h"
    2121#include "Common/include/Debug.h"
     22#include "Behavioural/include/Usage.h"
    2223
    2324using namespace std;
     
    2627namespace behavioural          {
    2728
     29  typedef uint8_t Tinstance_t;
     30
     31#define INSTANCE_NONE         0x0
     32#define INSTANCE_LIBRARY      0x1
     33#define INSTANCE_COMPONENT    0x2
     34#define INSTANCE_POSITION     0x4
     35#define INSTANCE_ALL          0x7
     36
     37  typedef struct
     38  {
     39    public : Tinstance_t _instance;
     40    public : Entity         * _entity  ;
     41  } Tcomponent_t;   
     42 
    2843  class Component
    2944  {
    3045    // -----[ fields ]----------------------------------------------------
     46  private   : const Tusage_t        _usage;
    3147  private   : Entity              * _entity        ;
    32   private   : list<Entity *>      * _list_component;
    33    
     48  private   : list<Tcomponent_t*> * _list_component;
     49
    3450    // -----[ methods ]---------------------------------------------------
    35   public    :                       Component         (void);
     51  public    :                       Component         (Tusage_t usage=USE_ALL);
    3652  public    :                       Component         (const Component & component);
    3753  public    :                       ~Component        ();
     
    5268                                                       ,uint32_t   size_y
    5369#endif
     70                                                       ,Tinstance_t instance=INSTANCE_ALL
    5471                                                       );
    5572
Note: See TracChangeset for help on using the changeset viewer.