Use the output of a module inside a class (including task (generator)

In reply to chr_sue:

Thank you chr_sue, i had changed the module(no need to this function)

but it still an issue with the DPI function i’m using:

Failed to find user specified function ‘sin’ in DPI precompiled library search list "C:/modeltech_10.1c/uvm-1.1b\win32\uvm_dpi.dll

i had downloaded uvm 1.2, but there is no DLL inside,
my setting is the following:

Win32, ModfelSim 10.1c