source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/SelfTest/src/main.cpp

Last change on this file was 113, checked in by rosiere, 15 years ago

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 808 bytes
Line 
1/*
2 * $Id: main.cpp 113 2009-04-14 18:39:12Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Counter/SelfTest/include/top.h"
9
10#ifndef MTI_SYSTEMC
11# ifndef SYSTEMC
12int main    (int argc, char * argv[])
13# else
14int sc_main (int argc, char * argv[])
15# endif
16{
17  int _return = EXIT_SUCCESS;
18
19  try 
20    {
21      top * my_top = new top ("my_top",argc,argv);
22
23      my_top->test();
24
25      delete my_top;
26    }
27  catch (morpheo::ErrorMorpheo & error)
28    {
29      msg (_("%s\n"),error.what ());
30      _return = EXIT_FAILURE;
31    }
32 
33  try 
34    {
35      if (_return == EXIT_SUCCESS)
36        TEST_OK("Counter : no error");
37      else
38        TEST_KO("Counter : a lot of error");
39    }
40  catch (morpheo::ErrorMorpheo & error)
41    {
42//       msg (_("<%s> :\n%s"),name.c_str(), error.what ());
43      _return = EXIT_FAILURE;
44    }
45
46  return _return;
47}
48#endif
Note: See TracBrowser for help on using the repository browser.