Changeset 73


Ignore:
Timestamp:
Jan 30, 2008, 12:08:19 PM (16 years ago)
Author:
rosiere
Message:

add two component :

  • Write Queue (in Moore version)
  • Execute Queue

add macro to help the interface allocation : Allocation.h

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural
Files:
95 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit_allocation.cpp

    r72 r73  
    133133             for (uint32_t k=0; k<_param->_nb_ooo_engine; k++)
    134134               {
    135                  uint32_t num_thread = 0;
     135                 uint32_t num_thread = get_num_thread(i,_param->_size_context_id,
     136                                                      j,_param->_size_front_end_id,
     137                                                      k,_param->_size_ooo_engine_id);
    136138
    137139                 _execute_register [i][j][k] = new execute_register_t;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit_transition.cpp

    r72 r73  
    3333            for (uint32_t k=0; k<_param->_nb_ooo_engine; k++)
    3434              {
    35                 uint32_t num_thread = 0;
     35                uint32_t num_thread = get_num_thread(i,_param->_size_context_id,
     36                                                     j,_param->_size_front_end_id,
     37                                                     k,_param->_size_ooo_engine_id);
    3638               
    3739                for (uint32_t x=GROUP_CUSTOM_1; x<GROUP_CUSTOM_8; x++)
     
    100102                (operation == OPERATION_CUSTOM_L_8))
    101103              {
    102                 uint32_t num_thread = 0;
     104                uint32_t num_thread = get_num_thread(context_id   ,_param->_size_context_id,
     105                                                     front_end_id ,_param->_size_front_end_id,
     106                                                     ooo_engine_id,_param->_size_ooo_engine_id);
    103107
    104108                (*(_param->_get_custom_information(num_thread)._get_custom_execute_genMoore(operation))) (_execute_operation, execute_register, _execute_param);
     
    121125              for (uint32_t k=0; k<_param->_nb_ooo_engine; k++)
    122126                {
    123                   uint32_t num_thread = 0;
    124                  
     127                  uint32_t num_thread = get_num_thread(i,_param->_size_context_id,
     128                                                       j,_param->_size_front_end_id,
     129                                                       k,_param->_size_ooo_engine_id);
     130
    125131                  for (uint32_t x=GROUP_CUSTOM_1; x<GROUP_CUSTOM_8; x++)
    126132                    {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/include/test.h

    r71 r73  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 * Test "RegisterFile"
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp

    r72 r73  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp

    r72 r73  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 * Test
     
    99#include "Behavioural/@DIRECTORY/SelfTest/include/test.h"
    1010#include "Common/include/Test.h"
     11#include "Behavioural/include/Allocation.h"
    1112
    1213#define NB_ITERATION  1
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/doc/Makefile

    r23 r73  
    22# $Id$
    33#
    4 # [ Description ]
     4# [ Description ]
    55#
    66# Makefile
    77#
    88
    9 #-----[ Directory ]----------------------------------------
     9#-----[ Directory ]----------------------------------------
    1010DIR_COMPONENT                   = ../
    1111include                         $(DIR_COMPONENT)/Makefile.defs
    1212
    13 #-----[ include ]------------------------------------------
     13#-----[ include ]------------------------------------------
    1414
    1515all                             :
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp

    r68 r73  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
    77
    88#include "Behavioural/@DIRECTORY/include/@COMPONENT.h"
     9#include "Behavioural/include/Allocation.h"
    910
    1011namespace morpheo                    {
     
    3233    _interfaces = entity->set_interfaces();
    3334
    34     // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     35    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3536
    3637      Interface * interface = _interfaces->set_interface(""
     
    4546     in_NRESET       = interface->set_signal_in  <Tcontrol_t> ("nreset",1, RESET_VHDL_YES);
    4647
    47     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     48    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    4849
    4950#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_transition.cpp

    r71 r73  
    44 * $Id$
    55 *
    6  * [ Description ]
     6 * [ Description ]
    77 *
    88 */
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl.cpp

    r53 r73  
    33 * $Id$
    44 *
    5  * [ Description ]
     5 * [ Description ]
    66 *
    77 */
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_body.cpp

    r53 r73  
    33 * $Id$
    44 *
    5  * [ Description ]
     5 * [ Description ]
    66 *
    77 */
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_declaration.cpp

    r53 r73  
    33 * $Id$
    44 *
    5  * [ Description ]
     5 * [ Description ]
    66 *
    77 */
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_msg_error.cpp

    r71 r73  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp

    r72 r73  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
     
    3232#undef  FUNCTION
    3333#define FUNCTION "@COMPONENT::operator<<"
    34   std::stringostream& operator<< (std::stringostream& output_stream ,
    35                                   morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
     34  std::ostream& operator<< (std::ostream& output_stream ,
     35                            morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
    3636  {
    3737    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h

    r72 r73  
    1 #ifndef DEBUG_COMPONENT_H
    2 #define DEBUG_COMPONENT_H
     1#ifndef Debug_component_H
     2#define Debug_component_H
    33
    44#define DEBUG_Behavioural                                         false
     
    2121#define         DEBUG_Multi_Execute_unit                          false
    2222#define           DEBUG_Execute_unit                              false
    23 #define             DEBUG_Functionnal_unit                        true
     23#define             DEBUG_Functionnal_unit                        false
    2424#define             DEBUG_Load_store_unit                         false
    2525#define         DEBUG_Multi_Read_unit                             false
     
    2727#define             DEBUG_Read_queue                              false
    2828#define             DEBUG_Reservation_station                     false
     29#define         DEBUG_Multi_Write_unit                            false
     30#define           DEBUG_Write_unit                                false
     31#define             DEBUG_Execute_queue                           true
     32#define             DEBUG_Write_queue                             true
    2933#define         DEBUG_Register_unit                               false
    3034#define           DEBUG_Register_unit_Glue                        false
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Types.h

    r72 r73  
    5656  };
    5757
     58  inline Tcontext_t get_num_thread (Tcontext_t num_context_id ,
     59                                    uint32_t   size_context_id,
     60                                    Tcontext_t num_front_end_id ,
     61                                    uint32_t   size_front_end_id,
     62                                    Tcontext_t num_ooo_engine_id ,
     63                                    uint32_t   size_ooo_engine_id)
     64  {
     65    return ((num_ooo_engine_id << (size_context_id + size_front_end_id)) |
     66            (num_front_end_id  << (size_context_id)) |
     67            (num_context_id));
     68  }
     69                                   
     70
    5871
    5972}; // end namespace behavioural
Note: See TracChangeset for help on using the changeset viewer.