Why is this an issue?

An implicit conversion in a port connection expression truncates a type. This conversion potentially loses data. An explicit cast should be used if it is intended.

How to fix it

Code examples

Noncompliant code example

module fly(input logic [1:0] a);
endmodule

module top;
  int a;
  fly fly1(.a(a)); // Noncompliant
endmodule