Is there a way to connect two modules port without instantiating a new wire?
little example:
module comparator(max,min,in0,in1);
input[7:0] in0,in1;
output[7:0] max,min;
wire[7:0] in0;
wire[7:0] in1;
wire[7:0] max;
wire[7:0] min;
assign max = (in0>in1) ? in0 : in1;
assign min = (in0<in1) ? in0 : in1;
endmodule
I want to connect 2 comparator modules without using a new wire, is there some kind of implicit connection? i really need a way to do such thing in order to do this net:

there are to many wire between the modules.
I’m guessing you want one module that instantiates the module
comparatormany times in a way that looks like your diagram. You’ll need to an array (two dimensional in my solution) were the width controlled by a parameter for the best flexibility. Inside agenerateblock usefor-loopsandif-elsestatements to make the connections. My solution uses slice of an array e.g.+:.This follows IEEE Std (1800-2009), should also be true for IEEE Std (1800-2005).