I am relatively new to FPGA and I am looking for some recommendations for current best practice regarding module declarations in Verilog.
I saw two ways to declare a module in verilog. The first reminds me of Traditional C , for example, examples on wikipedia :
module toplevel(clock,reset);
input clock;
input reset;
endmodule
While the alternative syntax has an I / O specifier as part of the argument list, not too different from VHDL, as in this example :
module fadder(
input a,
input b,
input cin,
output sum_out,
output c_out
);
endmodule
Verilog, ? "", , -, ( , , ), . !