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

In reply to saketa:

As I said, you are storing sine_if wth a certain name. But when getting this interface you are using another name which is not in the config_db. Align the names and it will work.