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

Casting doesn't work anymore

Added by Chandan Egbert 9 months ago. Updated 8 months ago.

Status:Closed Start date:08/09/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:TranslationError
Target version:-

Description

Verilator 3.820 devel rev verilator_3_820-2-gdf1da3d aborts with an internal error when casting is used. For example, the following code

module cast_issue(input clk, input [4:0] a);
    integer i;

    always @(posedge clk)
        i <= integer'(a);
endmodule

causes verilator to bail out with the message

%Error: Internal Error: cast_issue.v:5: ../V3Ast.cpp:494: Node has no back, already unlinked?
%Error: Internal Error: See the manual and http://www.veripool.org/verilator for more assistance.
%Error: Command Failed verilator_bin --sp cast_issue.v

The problem is the same with user defined types. This used to work fine in version 3.814

History

Updated by Wilson Snyder 9 months ago

  • Status changed from New to Resolved

Given the rework done in that code I was afraid it would be nasty, but simple enough thanks to your good testcase.

Fixed in git towards 3.821.

Updated by Chandan Egbert 9 months ago

Works great. Thanks!

Updated by Wilson Snyder 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom