In reply to cgales:
Thank you so much for replying.
I knew that I should use modport for design. Actually, I was implementing import and export tasks through modport . I came across these two concepts/techniques on some random websites. So I was curious to know how they work.
Well, there is one more problem I am facing. Don’t know whether you bumped into the same problem or not. In the waveform window, it’s only showing clk signal. I am not getting my other inputs and the output. Could you help me with that?