Interface keyword not recognized

Hi Folks,

I am using irun command and while compiling the interface I am facing below issue-

ncvlog: *E,MODPIF (…/interface.sv,30|6): modport declarations only allowed in interface declarations [SystemVerilog].
(`include file: …/interface.sv line 30, file: tb_top.v line 11)
modport MEM(clocking cb,input clock);

seems like it is not able to recognize interface entity here, please let me know if I need to source anything or any other method to resolve the issue.

Thanks,
Vivek

In reply to coovivek:
Not enough information. Have you tried compiling the interface declaration outside the module, by itself?
Ben Ben@systemverilog.us