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
First problem is that Verilator only accepts the two argument version of @$fopen@ (which returns a file descriptor), rather than the single argument version, which returns a multi-channel descriptor. I tried patching this to
Author Name: Jeremy Bennett (@jeremybennett)
Original Redmine Issue: 53 from https://www.veripool.org
Original Date: 2009-01-22
Original Assignee: Wilson Snyder (@wsnyder)
A couple of problems with @$fopen@ (taken from the OpenRISC 1000). I have the original Verilog:
First problem is that Verilator only accepts the two argument version of @$fopen@ (which returns a file descriptor), rather than the single argument version, which returns a multi-channel descriptor. I tried patching this to
Verilator now works fine, but I get defective C++. The code generated includes:
This last line prompts the G++ error:
As far as I can see @VL_EXTENDS_QI@ is an inline function, so should not appear on the LHS of an assignment.
It's not a killer (this is not an important part of the code), but any suggestions on a workaround welcome.
Original Verilog file attached
Thanks, Jeremy
The text was updated successfully, but these errors were encountered: