VERILOG2071: String format specifiers should not be missing
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| LOW | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter |
Description
A string formatting function has a lone % at the end of the format string, implying that the rest of the
specifier is missing. If a literal % is intended in the output, use the standard %% to
achieve that.
Noncompliant code example
module fly;
initial $display("Hello World %");
endmodule
Compliant solution
module fly;
initial $display("Hello World %%");
endmodule
Parameters
No parameters.