Changeset 67


Ignore:
Timestamp:
Dec 6, 2007, 8:57:49 PM (16 years ago)
Author:
rosiere
Message:

Ajout d'un nouveau composant : fifo generic (un port lecture et un port ecriture).

Location:
trunk/IPs/systemC/processor/Morpheo
Files:
54 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/include/Types.h

    r44 r67  
    1010 */
    1111
    12 #include "Common/include/Types.h"
     12#include "Behavioural/include/Types.h"
    1313
    1414namespace morpheo                    {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter.cpp

    r53 r67  
    5252    SC_METHOD (transition);
    5353    dont_initialize ();
    54     sensitive_pos << *(in_CLOCK);
     54    sensitive << (*(in_CLOCK)).pos();
    5555#endif
    5656
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked.cpp

    r62 r67  
    7373    SC_METHOD (transition);
    7474    dont_initialize ();
    75     sensitive_pos << *(in_CLOCK);
     75    sensitive << (*(in_CLOCK)).pos();
    7676
    7777#ifdef SYSTEMCASS_SPECIFIC
     
    8383    SC_METHOD (genMealy_read);
    8484    dont_initialize ();
    85     sensitive_neg << *(in_CLOCK);
     85    sensitive << (*(in_CLOCK)).neg();
    8686    for (uint32_t i=0; i<_param->_nb_port_read; i++)
    8787      {
     
    112112    SC_METHOD (genMealy_write);
    113113    dont_initialize ();
    114     sensitive_neg << *(in_CLOCK);
     114    sensitive<< (*(in_CLOCK)).neg();
    115115    for (uint32_t i=0; i<_param->_nb_port_write; i++)
    116116      {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.flags

    r66 r67  
    66
    77#-----[ Simulator ]----------------------------------------
    8 #SIMULATOR                      = systemcass_deps
    9 SIMULATOR                       = systemc
     8SIMULATOR                       = systemcass_deps
     9#SIMULATOR                      = systemc
    1010
    1111# 3 simulators :
     
    1515
    1616#-----[ Flags ]--------------------------------------------
    17 #MORPHEO_FLAGS                  =       -DSYSTEMC               \
    18 #                                       -DVHDL                  \
    19 #                                       -DVHDL_TESTBENCH        \
    20 #                                       -DVHDL_TESTBENCH_ASSERT \
    21 #                                       -DDEBUG=DEBUG_ALL       
    22 
    23 MORPHEO_FLAGS                   =       -DSYSTEMC               
    24 
     17MORPHEO_FLAGS                   =       -DSYSTEMC               \
     18                                        -DVHDL                  \
     19                                        -DVHDL_TESTBENCH        \
     20                                        -DVHDL_TESTBENCH_ASSERT \
     21                                        -DDEBUG=DEBUG_TRACE
    2522#
    2623#                                       -DSTATISTICS            \
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.mkf

    r66 r67  
    33#
    44
    5 all: _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest _Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest _Generic/Select/Select_Priority_Fixed/SelfTest _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest
     5all: _Generic/Queue/SelfTest _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest _Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest _Generic/Select/Select_Priority_Fixed/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest
     6
     7_Generic/Queue/SelfTest:
     8        make all -C Generic/Queue/SelfTest
    69
    710_Generic/RegisterFile/RegisterFile_Monolithic/SelfTest:
     
    2124
    2225clean:
     26        make clean -C Generic/Queue/SelfTest
    2327        make clean -C Generic/RegisterFile/RegisterFile_Monolithic/SelfTest
    2428        make clean -C Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest
     
    3034
    3135install:
     36        make install -C Generic/Queue/SelfTest
    3237        make install -C Generic/RegisterFile/RegisterFile_Monolithic/SelfTest
    3338        make install -C Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp

    r55 r67  
    5959   * Déclarations des signaux
    6060   *********************************************************************/
    61   sc_clock                               * in_CLOCK;
    62   sc_signal<Tcontrol_t>                  * in_NRESET;
    63 
    6461  string rename;
    6562
    66   in_CLOCK                                = new sc_clock ("clock", 1.0, 0.5);
    67   in_NRESET                              = new sc_signal<Tcontrol_t> ("NRESET");
     63  sc_clock              *  in_CLOCK  = new sc_clock ("clock", 1.0, 0.5);         
     64  sc_signal<Tcontrol_t> *  in_NRESET = new sc_signal<Tcontrol_t> ("NRESET");
    6865 
    6966  /********************************************************
     
    9491  LABEL("Initialisation");
    9592
     93  LABEL("Reset");
     94  in_NRESET->write(0);
     95  SC_START(5);
     96  in_NRESET->write(1); 
     97
    9698  LABEL("Loop of Test");
    9799
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h

    r66 r67  
    22#define DEBUG_COMPONENT_H
    33
    4 #define DEBUG_Behavioural                                         true
     4#define DEBUG_Behavioural                                         false
    55#define   DEBUG_Generic                                           false
    66#define     DEBUG_Counter                                         false
    77#define     DEBUG_Group                                           false
     8#define     DEBUG_Queue                                           true 
    89#define     DEBUG_Queue_Control                                   false
    910#define     DEBUG_Shifter                                         false
     
    2021#define         DEBUG_Multi_Execute_unit                          false
    2122#define           DEBUG_Execute_unit                              false
    22 #define             DEBUG_Load_store_unit                         true
     23#define             DEBUG_Load_store_unit                         false
    2324#define         DEBUG_Multi_Read_unit                             false
    2425#define           DEBUG_Read_unit                                 false
    25 #define             DEBUG_Read_queue                              false
     26#define             DEBUG_Read_queue                              true
    2627#define             DEBUG_Reservation_station                     false
    27 #define         DEBUG_Register_unit                               true
     28#define         DEBUG_Register_unit                               false
    2829#define           DEBUG_Register_unit_Glue                        false
    2930#define     DEBUG_Multi_Front_end                                 false
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Vhdl.h

    r65 r67  
    2828  string std_logic_conv   (uint32_t size, string   value);
    2929  string std_logic_conv   (uint32_t size, uint32_t value);
     30  string std_logic_range  (uint32_t size, uint32_t max , uint32_t min  );
    3031  string std_logic_range  (uint32_t max , uint32_t min  );
    3132  string std_logic_range  (uint32_t size);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/mkf.info

    r66 r67  
    1515
    1616# build src directory content
     17target_dep              all             Generic/Queue/SelfTest
    1718target_dep              all             Generic/RegisterFile/RegisterFile_Monolithic/SelfTest
    1819target_dep              all             Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest
    1920target_dep              all             Generic/Select/Select_Priority_Fixed/SelfTest
    20 target_dep              all             Generic/RegisterFile/RegisterFile_Monolithic/SelfTest
    2121target_dep              all             Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest
    2222target_dep              all             Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp

    r66 r67  
    6262#undef  FUNCTION
    6363#define FUNCTION "Vhdl::std_logic_range"
     64  string std_logic_range (uint32_t size, uint32_t max, uint32_t min)
     65  {
     66    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     67    string type;
     68
     69    if (size < 2)
     70      type = "";
     71    else
     72      if (max == min)
     73        type = "("+toString(max)+")";
     74      else
     75        type = "("+toString(max)+" downto "+toString(min)+")";
     76
     77    log_printf(FUNC,Behavioural,FUNCTION,"End");
     78
     79    return type;
     80  };
     81
    6482  string std_logic_range (uint32_t max, uint32_t min)
    6583  {
     
    106124    return _return;
    107125  }
     126
     127
     128
    108129}; // end namespace behavioural         
    109130}; // end namespace morpheo             
  • trunk/IPs/systemC/processor/Morpheo/Common/include/Log2.h

    r63 r67  
    2020  }
    2121
     22  inline bool is_log2 (uint32_t value)
     23  {
     24    return (value == static_cast<uint32_t>((1<<(morpheo::log2(value)))));
     25  }
     26
    2227}; // end namespace morpheo             
    2328
Note: See TracChangeset for help on using the changeset viewer.