Ignore:
Timestamp:
Mar 6, 2007, 3:34:04 PM (17 years ago)
Author:
kane
Message:

1) Ajout d'un "printer" XML pour la configuration de paramètres

2) Fin du composant "Two_Level_Branch_Predictor"

validation * systemc

  • vhdl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Include/Test.h

    r2 r3  
    55#include <sstream>
    66#include <stdint.h>
     7#include "Include/ErrorMorpheo.h"
    78using namespace std;
    89
     
    1415void test_ko (T exp1, T exp2, char * file, uint32_t line)
    1516{
    16   cout << "{" << num_test << "} : Test KO" << endl
    17        << " * Localisation"                << endl
    18        << "   - File : " << file           << endl
    19        << "   - Line : " << line           << endl
    20        << " * Expression is different "    << endl
    21        << "   - exp1 : " << exp1           << endl
    22        << "   - exp2 : " << exp2           << endl;
    23 
    24   exit (line);
     17  string msg = ("{"+toString(num_test)+"} : Test KO\n" +
     18                " * Localisation\n"                    +
     19                "   - File : "+file+"\n"               +
     20                "   - Line : "+toString(line)+"\n"     +
     21                " * Expression is different\n"         +
     22                "   - exp1 : "+toString(exp1)+"\n"     +
     23                "   - exp2 : "+toString(exp2)+"\n");
     24 
     25  throw (ErrorMorpheo (msg));
    2526};
    2627
Note: See TracChangeset for help on using the changeset viewer.