You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an interface ("din" in this example) is erroneously used in an expression like this:
assign dummy = din.data & din;
Verilator reports the following:
%Error: Internal Error: top.sv:15: ../V3Gate.cpp:440: Var didn't get varscoped in V3Scope.cpp
: ... In instance wrap_dut.din__Viftop
assign dummy = din.data & din;
^~~
... See the manual and http://www.veripool.org/verilator for more assistance.
Maybe a more informative error can be returned.
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-09-26T01:54:08Z
Thanks for your issue. I was unable to get the exact error message you did, but got other ugly messages when misusing an interface, so please check this also fixes your case.
Fixed in git towards eventual 4.020 release.
Here's what it does now:
%Error: t/t_interface_asvar_bad.v:29: Operator ADD expected non-interface on RHS but 'itf' is an interface.
: ... In instance t.source
getter = 4'd3 + itf;
^~~
Author Name: Bogdan Vukobratovic (@bogdanvuk)
Original Redmine Issue: 1525 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
When an interface ("din" in this example) is erroneously used in an expression like this:
Verilator reports the following:
Maybe a more informative error can be returned.
The text was updated successfully, but these errors were encountered: