Jump to content

problems regresson tests


olá

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.

Link to comment
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

Link to comment
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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...