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

In reply to chr_sue:

I’m defining the module sine wave generator, and it’s interface,

i’m tryning to pass it’s output variable to “m_if.cb.Ain”

now i’m facing another isuue:

Variable ‘/top/dut/Dout’, driven via a port connection, is multiply driven. See D:/sigma_delta_SV/FirstSDM.sv(114)