VERILOG2033: Pure “DPI” tasks should not be used

Summary

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM--Consistency | Conventional10minsynthesis, 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.