My first question : I wonder how you compile your vhdl file under ghdl ?
In c/c++, we use
- -Werror
- -Wunused-variable
- -Wunused-value
- -Wunused-function
- -Wfloat-equal -Wall
.My second question : are there a way one can use ghdl with those things ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The user manual for GHDL would be a good starting point, specifically sections 3.1 (building) and 3.4 (warnings).
It is difficult to compare a set of C/C++ compiler flags to that of a VHDL compiler, but there may be some similar functionality between them, such as warnings become errors and alerting the user to unused design components. For example (from the documentation):