How to export the dpi function between c and sv

In reply to dave_59:

Hi Dave,

The run task in your code is invoked in the top module. Shall I know the reason ?