VERILOG2033: Pure “DPI” tasks should not be used
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | - | Consistency | Conventional | 10min | synthesis, portability, vscode, simulation, linter |
Description
SystemVerilog standard does not allow a DPI import task to be marked as pure.
Even if some tools allow this syntax, refrain from using it to keep your code portable.
Noncompliant code example
import "DPI-C" pure task func(logic [3:0] a);
Parameters
No parameters.