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

Synthesis to verilog does not work for VHDL code with asserts #4

Open
Flojo101 opened this issue Dec 11, 2024 · 1 comment
Open

Synthesis to verilog does not work for VHDL code with asserts #4

Flojo101 opened this issue Dec 11, 2024 · 1 comment

Comments

@Flojo101
Copy link

Due to the ChildProcessService combining stdout and stderr, synthesis of VHDL designs that print asserts during elaboration or synthesis fails. The root cause are the asserts, which GHDL prints to stderr. These are then combined with stdout by the ChildProcessService, thus creating a Verilog file with syntax issues.

Potential solutions:

  • Have ExecuteShellAsync return stdout and stderr separately instead of combined
  • Use a custom output action to copy stdout to a separate string
@Flojo101
Copy link
Author

The current way of just writing the ExecuteShellAsync output should also be obsolete in the next GHDL release, as it includes the -o option. It tells GHDL to write the synthesized Verilog code directly to disk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant