[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  SystemPerl
  Voneline
  WFH
General Info
  Papers

Issue #394

Verilated code doesn't compile on Visual Studio 2010

Added by Amir Gonnen over 1 year ago. Updated over 1 year ago.

Status:Closed Start date:09/21/2011
Priority:Normal Due date:
Assignee:Wilson Snyder % Done:

0%

Category:Configure/Make/Compiling
Target version:-

Description

The problem is that verilated.h uses trunc and round functions which are not defined on cmath.

See http://www.johndcook.com/math_h.html for comparison of functions in the C math.h header across different compilers.

Perhaps you could either use other functions or add an implementation for these functions when the compiler is Visual Studio.

Thanks,

Amir

History

Updated by Wilson Snyder over 1 year ago

  • Category set to Configure/Make/Compiling
  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Thanks for the pointer; simple enough to work around.

Fixed in git towards 3.822.

Updated by Wilson Snyder over 1 year ago

  • Status changed from Resolved to Closed

In 3.822.

Also available in: Atom