Ignore:
Timestamp:
Feb 2, 2008, 12:39:01 PM (16 years ago)
Author:
rosiere
Message:

Add new component : Read_unit (no tested)
Change functionnal_unit : now use type and operation to execute the good function
Change New_Component's script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h

    r75 r76  
    55 * $Id$
    66 *
    7  * [ Description ]
     7 * [ Description ]
    88 *
    99 */
     
    4747  public    : Toperation_t       _operation   ;
    4848  public    : Ttype_t            _type        ;
     49  public    : Tlsq_ptr_t         _store_queue_ptr_write;
     50  public    : Tlsq_ptr_t         _load_queue_ptr_write ;
    4951  public    : Tcontrol_t         _has_immediat;
    5052  public    : Tgeneral_data_t    _immediat    ;
     
    6971                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Treservation_station_entry_t & x)
    7072    {
    71       output_stream << " * _context_id     : " << toString(x._context_id     ) << std::endl
    72                     << " * _front_end_id   : " << toString(x._front_end_id   ) << std::endl
    73                     << " * _ooo_engine_id  : " << toString(x._ooo_engine_id  ) << std::endl
    74                     << " * _rob_id         : " << toString(x._rob_id         ) << std::endl
    75                     << " * _operation      : " << toString(x._operation      ) << std::endl
    76                     << " * _type           : " << toString(x._type           ) << std::endl
    77                     << " * _has_immediat   : " << toString(x._has_immediat   ) << std::endl
    78                     << " * _immediat       : " << toString(x._immediat       ) << std::endl
    79 //                  << " * _read_ra        : " << toString(x._read_ra        ) << std::endl
    80                     << " * _num_reg_ra     : " << toString(x._num_reg_ra     ) << std::endl
    81                     << " * _data_ra_val    : " << toString(x._data_ra_val    ) << std::endl
    82                     << " * _data_ra        : " << toString(x._data_ra        ) << std::endl
    83 //                  << " * _read_rb        : " << toString(x._read_rb        ) << std::endl
    84                     << " * _num_reg_rb     : " << toString(x._num_reg_rb     ) << std::endl
    85                     << " * _data_rb_val    : " << toString(x._data_rb_val    ) << std::endl
    86                     << " * _data_rb        : " << toString(x._data_rb        ) << std::endl
    87 //                  << " * _read_rc        : " << toString(x._read_rc        ) << std::endl
    88                     << " * _num_reg_rc     : " << toString(x._num_reg_rc     ) << std::endl
    89                     << " * _data_rc_val    : " << toString(x._data_rc_val    ) << std::endl
    90                     << " * _data_rc        : " << toString(x._data_rc        ) << std::endl
    91                     << " * _write_rd       : " << toString(x._write_rd       ) << std::endl
    92                     << " * _num_reg_rd     : " << toString(x._num_reg_rd     ) << std::endl
    93                     << " * _write_re       : " << toString(x._write_re       ) << std::endl
    94                     << " * _num_reg_re     : " << toString(x._num_reg_re     ) << std::endl;
     73      output_stream << " * _context_id            : " << toString(x._context_id     ) << std::endl
     74                    << " * _front_end_id          : " << toString(x._front_end_id   ) << std::endl
     75                    << " * _ooo_engine_id         : " << toString(x._ooo_engine_id  ) << std::endl
     76                    << " * _rob_id                : " << toString(x._rob_id         ) << std::endl
     77                    << " * _operation             : " << toString(x._operation      ) << std::endl
     78                    << " * _type                  : " << toString(x._type           ) << std::endl
     79                    << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
     80                    << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
     81                    << " * _has_immediat          : " << toString(x._has_immediat   ) << std::endl
     82                    << " * _immediat              : " << toString(x._immediat       ) << std::endl
     83//                  << " * _read_ra               : " << toString(x._read_ra        ) << std::endl
     84                    << " * _num_reg_ra            : " << toString(x._num_reg_ra     ) << std::endl
     85                    << " * _data_ra_val           : " << toString(x._data_ra_val    ) << std::endl
     86                    << " * _data_ra               : " << toString(x._data_ra        ) << std::endl
     87//                  << " * _read_rb               : " << toString(x._read_rb        ) << std::endl
     88                    << " * _num_reg_rb            : " << toString(x._num_reg_rb     ) << std::endl
     89                    << " * _data_rb_val           : " << toString(x._data_rb_val    ) << std::endl
     90                    << " * _data_rb               : " << toString(x._data_rb        ) << std::endl
     91//                  << " * _read_rc               : " << toString(x._read_rc        ) << std::endl
     92                    << " * _num_reg_rc            : " << toString(x._num_reg_rc     ) << std::endl
     93                    << " * _data_rc_val           : " << toString(x._data_rc_val    ) << std::endl
     94                    << " * _data_rc               : " << toString(x._data_rc        ) << std::endl
     95                    << " * _write_rd              : " << toString(x._write_rd       ) << std::endl
     96                    << " * _num_reg_rd            : " << toString(x._num_reg_rd     ) << std::endl
     97                    << " * _write_re              : " << toString(x._write_re       ) << std::endl
     98                    << " * _num_reg_re            : " << toString(x._num_reg_re     ) << std::endl;
    9599
    96100      return output_stream;
    97101    }
    98 
    99102  };
    100103
     
    104107#endif
    105108  {
    106     // -----[ fields ]----------------------------------------------------
     109    // -----[ fields ]----------------------------------------------------
    107110    // Parameters
    108111  protected : const std::string       _name;
     
    118121
    119122#ifdef SYSTEMC
    120     // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     123    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    121124    // Interface
    122125  public    : SC_CLOCK                      *  in_CLOCK        ;
    123126  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
    124127
    125     // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~
     128    // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~
    126129  public    : SC_IN (Tcontrol_t        )    *  in_INSERT_VAL            ;
    127130  public    : SC_OUT(Tcontrol_t        )    * out_INSERT_ACK            ;
     
    132135  public    : SC_IN (Toperation_t      )    *  in_INSERT_OPERATION      ;
    133136  public    : SC_IN (Ttype_t           )    *  in_INSERT_TYPE           ;
     137  public    : SC_IN (Tlsq_ptr_t        )    *  in_INSERT_STORE_QUEUE_PTR_WRITE;
     138  public    : SC_IN (Tlsq_ptr_t        )    *  in_INSERT_LOAD_QUEUE_PTR_WRITE ;
    134139  public    : SC_IN (Tcontrol_t        )    *  in_INSERT_HAS_IMMEDIAT   ;
    135140  public    : SC_IN (Tgeneral_data_t   )    *  in_INSERT_IMMEDIAT       ;
     
    151156  public    : SC_IN (Tspecial_address_t)    *  in_INSERT_NUM_REG_RE     ;
    152157
    153     // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~
     158    // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~
    154159  public    : SC_OUT(Tcontrol_t        )   ** out_RETIRE_VAL            ;
    155160  public    : SC_IN (Tcontrol_t        )   **  in_RETIRE_ACK            ;
     
    160165  public    : SC_OUT(Toperation_t      )   ** out_RETIRE_OPERATION      ;
    161166  public    : SC_OUT(Ttype_t           )   ** out_RETIRE_TYPE           ;
     167  public    : SC_OUT(Tlsq_ptr_t        )   ** out_RETIRE_STORE_QUEUE_PTR_WRITE;
     168  public    : SC_OUT(Tlsq_ptr_t        )   ** out_RETIRE_LOAD_QUEUE_PTR_WRITE ;
    162169  public    : SC_OUT(Tcontrol_t        )   ** out_RETIRE_HAS_IMMEDIAT   ;
    163170  public    : SC_OUT(Tgeneral_data_t   )   ** out_RETIRE_IMMEDIAT       ;
     
    170177  public    : SC_OUT(Tspecial_address_t)   ** out_RETIRE_NUM_REG_RE     ;
    171178
    172     // ~~~~~[ Interface "gpr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     179    // ~~~~~[ Interface "gpr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    173180
    174181  public    : SC_IN (Tcontrol_t        )   **  in_GPR_WRITE_VAL          ; // val and ack
     
    177184  public    : SC_IN (Tgeneral_data_t   )   **  in_GPR_WRITE_DATA         ;
    178185
    179     // ~~~~~[ Interface "spr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     186    // ~~~~~[ Interface "spr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    180187
    181188  public    : SC_IN (Tcontrol_t        )   **  in_SPR_WRITE_VAL          ; // val and ack
     
    184191  public    : SC_IN (Tspecial_data_t   )   **  in_SPR_WRITE_DATA         ;
    185192
    186     // ~~~~~[ Interface "bypass_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     193    // ~~~~~[ Interface "bypass_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    187194
    188195  public    : SC_IN (Tcontext_t        )   **  in_BYPASS_WRITE_OOO_ENGINE_ID ;
     
    194201  public    : SC_IN (Tspecial_data_t   )   **  in_BYPASS_WRITE_SPR_DATA      ;
    195202
    196     // ~~~~~[ Interface "bypass_memory" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     203    // ~~~~~[ Interface "bypass_memory" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    197204
    198205  public    : SC_IN (Tcontrol_t        )   **  in_BYPASS_MEMORY_VAL          ;
     
    202209
    203210
    204     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    205 
    206     // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    207 
    208     // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     211    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     212
     213    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     214
     215    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    209216#ifdef  SYSTEMC_VHDL_COMPATIBILITY
    210217  protected : bool                          *  _queue_valid;
     
    220227#endif
    221228
    222     // -----[ methods ]---------------------------------------------------
     229    // -----[ methods ]---------------------------------------------------
    223230
    224231#ifdef SYSTEMC
Note: See TracChangeset for help on using the changeset viewer.