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

[ghdl --synth] $fatal not verilog task #2008

Closed
suppamax opened this issue Mar 15, 2022 · 3 comments
Closed

[ghdl --synth] $fatal not verilog task #2008

suppamax opened this issue Mar 15, 2022 · 3 comments
Labels
Feature: Synthesis VHDL to netlist transformation. Question

Comments

@suppamax
Copy link

Description
ghdl --synth --out=verilog generates code which includes $fatal task, which is not a verilog task

Expected behaviour
maybe combining $display and $finish?

How to reproduce?
any code which executes

" $fatal(1, ""assertion failure \l0"");" & NL, Inst);

or
" $fatal(1, ""assertion(cover) failure \l0"");" & NL,

@tgingold
Copy link
Member

tgingold commented Mar 16, 2022 via email

@suppamax
Copy link
Author

OK, I just assumed you were targeting plain verilog, not SV.

@umarcor umarcor added Question Feature: Synthesis VHDL to netlist transformation. labels Mar 16, 2022
@tgingold
Copy link
Member

assertions in the netlist is useful for formal verification, hence the use of SV specific routines.
But if you want a pure verilog output, use --no-formal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Synthesis VHDL to netlist transformation. Question
Projects
None yet
Development

No branches or pull requests

3 participants