[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 #347

DPI problem with vector task arguments

Added by Chandan Egbert about 2 years ago. Updated almost 2 years ago.

Status:Closed Start date:05/10/2011
Priority:High 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 task with vector input arguments is exported as a DPI call, gcc fails with the complaint

error: invalid operands of types 'int' and 'const svBitVecVal*' to binary 'operator&'

when compiling V<base>__ALLcls.cpp. The problem is that the argument is passed by reference, but not dereferenced before assignment. Run the example with "sh doit.sh" to see the problem.

dpi_issue1.tgz - Example (897 Bytes) Chandan Egbert, 05/10/2011 08:40 pm

patch347 - Patch (459 Bytes) Chandan Egbert, 05/10/2011 08:40 pm

History

Updated by Chandan Egbert about 2 years ago

Attached is the example and a patch that fixes the problem

Updated by Wilson Snyder about 2 years ago

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

Your patch was close; it only needed to be done on bit vector types not non-vector types.

Fixed in git for 3.813.

Updated by Wilson Snyder almost 2 years ago

In 3.813.

Updated by Wilson Snyder almost 2 years ago

  • Status changed from Resolved to Closed

In 3.813.

Also available in: Atom