Jump to content
olá

problems regresson tests

Recommended Posts

Hey everybody,

 

I'm still new with SystemC. So I'm referring to the first steps:

Using Ubuntu I had now problems installing SystemC and getting succesful regression tests.

However, my regression tests in Windows with VS2015 and VS2017 ended with 4% or 0%.

I've used Cygwin to build the library.

  1. Do you have any idea which could have caused the low percentage?
  2. What would happen, if I use systemc in this case?

 

Thank you very much for you answer in advance.

Share this post


Link to post
Share on other sites

When you use MSVC 2015/2017, did you make sure to use SystemC 2.3.2? Earlier SystemC versions did not support such recent versions of MSVC.

When you say "regression tests", do you mean the SystemC regression test suite?  If so, please check the accompanying README_windows.txt for any steps you might have missed.

If this still doesn't help, please post some more details on what exact errors you see.

Greetings from Duisburg,
  Philipp

Share this post


Link to post
Share on other sites

Hello @olá,

Currently the library built with Cygwin is not directly compatible with the Visual Studio setup.

You can build the SystemC library using CMake and Visual Studio Compiler like this:

// extract the systemc library
////////////////////////////////////////
// vvvvvvvvvvv Important vvvvvvvvvvvvvvvv
// open the Visual Studio Command Prompt.
// Ensure you have CMake installed and in the PATH environment variable.
/////////////////////////////////////////

// cd to systemc library extracted location.
// Create a build directory
mkdir build
// Change into the build directory.
cd build

// Run CMake configuration
// Check the CMake documentation for the Correct Visual Studio Generator Value.
cmake -G "Visual Studio 14 2015 Win64" ..

// Run the build
cmake --build . --config Debug

// Open the SystemCLanguage.sln file in the Visual Studio chosen previously.

 

Note:

  • In-case you are completely developing in Cygwin environment you can follow the same steps to build SystemC library and run the regression suite as in a Linux environment.
  • You need to enable pthreads in the SystemC configuration, since the QuickThreads implementation is currently broken in Cygwin 64-bit environment.

Best Regards,

Ameya Vikram Singh

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×