Pure and Context Tasks and Functions SystemVerilog DPI
1 pure , context tasks , functions
1.1 pure functions
1.1.1 properties of pure functions
1.2 context tasks , functions
1.2.1 properties of context tasks , functions
pure , context tasks , functions
pure functions
a function results solely depends on value of input arguments no side effects called pure function.
properties of pure functions
an imported task can never declared pure.
context tasks , functions
an imported task or function calls exported tasks or functions or accesses systemverilog data objects other actual arguments called context task or function.
properties of context tasks , functions
1) context imported task or function can access (read or write) systemverilog data object calling (pli/vpi) or calling export task or function. therefore, call context task or function barrier systemverilog compiler optimization.
Comments
Post a Comment