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 ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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     
Note: See TracChangeset for help on using the changeset viewer.