slang
slang copied to clipboard
-Wunused-but-set-net behavior for a wire connecting two inout ports together
In the following example, if I comment out the wild-card port connection and replace it with a named connection, the warning goes away. Ideally, there wouldn't be a warning for this case since the wire's purpose is only to interconnect two different modules.
slangtest162.sv:10:10: warning: net 'a' is driven but its value is never used [-Wunused-but-set-net]
wire a;
^
module m(
inout wire a
);
wire local_a;
pullup(local_a);
tranif1(a, local_a, 1'b1);
endmodule
module top;
wire a;
m m1(
// .a (a)
.*
);
m m2(
// .a (a)
.*
);
endmodule