Inout port illegal connection error

In reply to nrllhclb:

The port declaration

inout [31:0] DATA;

implies this is a nettype (wire). And you want to connect this to a simple variable in your interface. This is not legal.

In your SV interface declare

wire [31:0] DATA,

This’ll fix your problem.