Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$fopen is not supported #464

Closed
veripoolbot opened this issue Mar 22, 2012 · 1 comment
Closed

$fopen is not supported #464

veripoolbot opened this issue Mar 22, 2012 · 1 comment
Labels
resolution: no fix needed Closed; no fix required (not a bug)

Comments

@veripoolbot
Copy link
Contributor


Author Name: Alex Solomatnikov
Original Redmine Issue: 464 from https://www.veripool.org
Original Date: 2012-03-22


In Altera's IP code:

  reg [31:0] trace_handle; // for $fopen
  initial  
  begin
     trace_handle = $fopen("aaa.tr");
     $fwrite(trace_handle, "version 3\nnumThreads 1\n");
  end

causes:

syntax error, unexpected ')'

However, verilator does not complain about $fwrite().

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2012-03-22T23:06:52Z


You need to use the more recent MCD replacement:

$fopen("aaa.tr","w");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: no fix needed Closed; no fix required (not a bug)
Projects
None yet
Development

No branches or pull requests

1 participant