Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support legacy file descriptors for $fgetc #2190
While using Bluespec to generate my Verilog testbench, I found out that Verilator does not support legacy file descriptors (described by constant values) when calling
More concretely, this does not seem to work in the generated Verilog (
It is probably possible to change the Bluespec compiler to fix this. However, there is some support for these constant legacy descriptors already, I think; for example, #961 describes this same basic problem, only with
I would be willing to write a patch for this, but the relevant code seems to have changed quite a bit since #961 was fixed, so I'm not sure where to start...
Sure, would be good to have a patch in this area. For details on process see the internals.adoc. The process would be roughly:
The hard part will be to support output to two streams in parallel (the "M" in MCD), perhaps punt on that?