Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_test.cpp

    r81 r88  
    1313
    1414  std::string Interface_fifo::testbench_test (Vhdl * & vhdl,
    15                                         std::string   counter_name,
    16                                         std::string   reset_name  )
     15                                              std::string   counter_name,
     16                                              std::string   reset_name  )
    1717  {
    1818    log_printf(FUNC,Behavioural,"testbench_test","Begin");
     
    2727        vhdl->set_body("");
    2828
    29                test_name        = testbench_test_name        (vhdl);
     29                    test_name        = testbench_test_name        (vhdl);
    3030        std::string test_name_tmp    = test_name+"_tmp";
    3131        std::string test_name_ok     = testbench_test_ok          (vhdl);
     
    5454        vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_tmp+";");
    5555
    56 #ifdef VHDL_TESTBENCH_ASSERT
    57         if (_list_cycle->empty()== false)
    58           {
    59             vhdl->set_body("");
    60             vhdl->set_body("-- Assert ...");
    61             vhdl->set_body("");
     56// #ifdef VHDL_TESTBENCH_ASSERT
     57//      if (_list_cycle->empty()== false)
     58//        {
     59//          vhdl->set_body("");
     60//          vhdl->set_body("-- Assert ...");
     61//          vhdl->set_body("");
    6262
    63             uint32_t                 j = 0;
    64             std::list<uint32_t>::iterator i = _list_cycle->begin();
     63//          uint32_t                 j = 0;
     64//          std::list<uint32_t>::iterator i = _list_cycle->begin();
    6565           
    66             while (i != _list_cycle->end())
    67               {
    68                 vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '1')) report \"***** <"+_name+"> Test number "+toString(j)+" is OK     *****\" severity NOTE;");
    69                 vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '0')) report \"@@@@@ <"+_name+"> Test number "+toString(j)+" is KO !!! @@@@@\" severity NOTE;");
    70                 j++;
    71                 ++i;
    72               }
     66//          while (i != _list_cycle->end())
     67//            {
     68//              vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '1')) report \"***** <"+_name+"> Test number "+toString(j)+" is OK     *****\" severity NOTE;");
     69//              vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '0')) report \"@@@@@ <"+_name+"> Test number "+toString(j)+" is KO !!! @@@@@\" severity NOTE;");
     70//              j++;
     71//              ++i;
     72//            }
    7373
    74             vhdl->set_body("");
    75           }
    76 #endif
     74//          vhdl->set_body("");
     75//        }
     76// #endif
    7777      }
    7878
     
    8080
    8181    return test_name;
    82 
    8382  };
    8483
Note: See TracChangeset for help on using the changeset viewer.