Ignore:
Timestamp:
Jan 15, 2009, 6:19:08 PM (15 years ago)
Author:
rosiere
Message:

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_min.cfg

    r100 r101  
    331       1       *2      #_size_data
    440       1       +1      #_nb_port_slot
     50       0       +1      #_have_port_write
     60       0       +1      #_have_port_read
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_size_queue_log2.cfg

    r100 r101  
    3332      32      *2      #_size_data
    440       0       *2      #_nb_port_slot
     51       1       +1      #_have_port_write
     61       1       +1      #_have_port_read
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_size_queue_no_log2.cfg

    r100 r101  
    3332      32      *2      #_size_data
    440       0       *2      #_nb_port_slot
     51       1       +1      #_have_port_write
     61       1       +1      #_have_port_read
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_slot_out_size_queue_log2.cfg

    r100 r101  
    3332      32      *2      #_size_data
    441       8       *2      #_nb_port_slot
     51       1       +1      #_have_port_write
     61       1       +1      #_have_port_read
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_slot_out_size_queue_no_log2.cfg

    r100 r101  
    3332      32      *2      #_size_data
    441       8       *2      #_nb_port_slot
     51       1       +1      #_have_port_write
     61       1       +1      #_have_port_read
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/main.cpp

    r100 r101  
    88#include "Behavioural/Generic/Queue/SelfTest/include/test.h"
    99
    10 #define NB_PARAMS 3
     10#define NB_PARAMS 5
    1111
    1212void usage (int argc, char * argv[])
     
    1414  cerr << "<Usage> " << argv[0] << " name_instance list_params" << endl
    1515       << "list_params is :" << endl
    16        << " - size_queue   (uint32_t)" << endl
    17        << " - size_data    (uint32_t)" << endl
    18        << " - nb_port_slot (uint32_t)" << endl
     16       << " - size_queue      (uint32_t)" << endl
     17       << " - size_data       (uint32_t)" << endl
     18       << " - nb_port_slot    (uint32_t)" << endl
     19       << " - have_port_write (bool    )" << endl
     20       << " - have_port_read  (bool    )" << endl
    1921       << "" << endl;
    2022
     
    3739  uint32_t       x = 1;
    3840 
    39   const string   name         =      argv[x++];
    40   const uint32_t size_queue   = atoi(argv[x++]);
    41   const uint32_t size_data    = atoi(argv[x++]);
    42   const uint32_t nb_port_slot = atoi(argv[x++]);
    43 
     41  const string   name            =      argv[x++];
     42  const uint32_t size_queue      = fromString<uint32_t>(argv[x++]);
     43  const uint32_t size_data       = fromString<uint32_t>(argv[x++]);
     44  const uint32_t nb_port_slot    = fromString<uint32_t>(argv[x++]);
     45  const bool     have_port_write = fromString<bool>(argv[x++]);
     46  const bool     have_port_read  = fromString<bool>(argv[x++]);
    4447  try
    4548    {
     
    4750        (size_queue,
    4851         size_data ,
    49          nb_port_slot
     52         nb_port_slot,
     53         have_port_write,
     54         have_port_read
    5055        );
    5156     
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/test.cpp

    r100 r101  
    5858  ALLOC1_SC_SIGNAL(out_SLOT_VAL   ,"out_SLOT_VAL"   ,Tcontrol_t,_param->_nb_port_slot);
    5959  ALLOC1_SC_SIGNAL(out_SLOT_DATA  ,"out_SLOT_DATA"  ,Tdata_t   ,_param->_nb_port_slot);
     60  ALLOC0_SC_SIGNAL(out_PTR_WRITE  ,"out_PTR_WRITE"  ,Tptr_t    );
     61  ALLOC0_SC_SIGNAL(out_PTR_READ   ,"out_PTR_READ"   ,Tptr_t    );
    6062 
    6163  /********************************************************
     
    7678  INSTANCE1_SC_SIGNAL(_Queue,out_SLOT_VAL   ,_param->_nb_port_slot);
    7779  INSTANCE1_SC_SIGNAL(_Queue,out_SLOT_DATA  ,_param->_nb_port_slot);
     80  if (_param->_have_port_ptr_write)
     81  INSTANCE0_SC_SIGNAL(_Queue,out_PTR_WRITE  );
     82  if (_param->_have_port_ptr_read )
     83  INSTANCE0_SC_SIGNAL(_Queue,out_PTR_READ   );
    7884
    7985  cout << "<" << name << "> Start Simulation ............" << endl;
     
    168174  DELETE1_SC_SIGNAL(out_SLOT_VAL   ,_param->_nb_port_slot);
    169175  DELETE1_SC_SIGNAL(out_SLOT_DATA  ,_param->_nb_port_slot);
    170 
     176  DELETE0_SC_SIGNAL(out_PTR_WRITE  );
     177  DELETE0_SC_SIGNAL(out_PTR_READ   );
    171178#endif
    172179
Note: See TracChangeset for help on using the changeset viewer.