2016년 9월 26일 월요일

SystemC regression test with Visual Studio 2015

1. Download the SystemC regression test file (systemc_regressions-2.3.1.tar) from http://www.accellera.org/.

2. Untar the file to the directory where the regression test is going to be performed.
e.g. D:\systemc_regressions-2.3.1

3. Install Cygwin with Perl package.

4. In Cygwin, rename /usr/bin/link.exe to /usr/bin/link_cyg.exe.
This is required because Visual Studio's link.exe should be used instead of that of Cygwin.

5. Modify scripts\vsvars.bat file as below:
(The file on the left is the original. Click the image to read in detail.)

6. Modify scripts\verify.pl file as below:
(The file on the left is the original. Click the image to read in detail.)

7. Follow the steps as below (Click the image to read in detail):

8. The results for SystemC and TLM tests are as below.
(SystemC is assumed to be installed using the directions in [this article].)

8-1. SystemC:
-------------------------------------------------------------------------------
 Tests that failed :
-------------------------------------------------------------------------------
                diff                : systemc/bugs/sc_bigint_part_select/test01/test01.cpp
             compiling              : systemc/compliance_1666/test228/test228.cpp
                diff                : systemc/datatypes/fx/fast_constructors/test.f
                diff                : systemc/datatypes/fx/ranges/test.f
                diff                : systemc/datatypes/int/misc/test02/test02.cpp
                diff                : systemc/datatypes/int/parse_binary_bits/test01/test01.cpp
                diff                : systemc/datatypes/int/parse_binary_bits/test02/test02.cpp
                diff                : systemc/datatypes/misc/concat/test07/test07.cpp
                diff                : systemc/kernel/phase_callbacks/test04/register_phase_callbacks.cpp
                diff                : systemc/kernel/phase_callbacks/test05/simulation_callbacks.cpp
             compiling              : systemc/kernel/sc_time/test01/test01.cpp
                diff                : systemc/misc/stars/star130782/test.cpp

Total passed : 828
Total failed : 12

   GUT METER : 98 %

8-2. TLM:
-------------------------------------------------------------------------------
 Tests that failed :
-------------------------------------------------------------------------------

Total passed : 18
Total failed : 0

   GUT METER : 100 %