VERILOG2070: Lifetime specifiers should not be used on method prototype declarations
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| LOW | - | - | Intentionality | Logical | 10min | synthesis, portability, vscode, simulation, linter |
Description
Lifetime specifiers are not allowed on method prototype declarations.
Even if some tools allow it, refrain from using this syntax to keep your code portable.
Noncompliant code example
class Fly; extern function automatic void dream; endclass function automatic void Fly::dream; endfunction
Compliant solution
class Fly; extern function void dream; endclass function automatic void Fly::dream; endfunction
Parameters
No parameters.