[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
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Issue #346

Undeclared svBitVecVal

Added by Chandan Egbert about 1 year ago. Updated 11 months ago.

Status:Closed Start date:05/10/2011
Priority:Normal Due date:
Assignee:Wilson Snyder % Done:

0%

Category:TranslationError
Target version:-

Description

Verilator version: Verilator 3.812 2011/04/06 rev verilator_3_811-18-ga20b4f2
When a module with a DPI-C exported task is verilated and compiled, gcc complains that

ISO C++ forbids declaration of 'svBitVecVal' with no type
when it compiles the file V<base>__ALLcls.cpp. This seems to be due to the fact that svdpi.h is not included.

dpi_issue1.tgz (897 Bytes) Chandan Egbert, 05/10/2011 07:23 pm

patch346 - Patch for issue (1.2 kB) Chandan Egbert, 05/10/2011 07:35 pm

History

Updated by Chandan Egbert about 1 year ago

Please see attached example. Use "sh doit.sh" to verilate and compile.

Updated by Chandan Egbert about 1 year ago

The attached patch fixes the problem. The changes are in the following files:

src/V3EmitC.cpp
src/V3EmitCSyms.cpp

Updated by Wilson Snyder about 1 year ago

  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Thanks for a great patch, looks right on.

Fixed in git for 3.813.

Updated by Wilson Snyder about 1 year ago

Looking at bug347, I needed an include in the interface too. I pushed this to git.

Updated by Wilson Snyder 11 months ago

  • Status changed from Resolved to Closed

In 3.813.

Also available in: Atom