Port directions in an interface with modports

In reply to acpatel5:

From the LRM:

The keyword modport indicates that the directions are declared as if inside the module.

Signals inside an interface don’t have any direction as they are just signals. The use of a modport allows you to specify a port direction in specific use cases.

Note that modports are considered a design construct and shouldn’t be used in a verification environment.