I am wondering which SystemVerilog coding fits better for ASIC/FPGA Synthesis/linting. I mean for simulation/synthesis/... purpose if it makes any difference and if a coding style is preferred, for example for a lot of signals, maybe passing by intermediate signals may slow down simulation ? For example, will the code cause a problem for design synthesis.
- Using intermediate signal
module top(output o);
logic o_sig ;
sub i_sub (
.i(),
.o(o_sig)
);
assign o = o_sig;
endmodule
- Direct connection
module top(output o);
sub i_sub (
.i(),
.o(o)
);
endmodule