Reading some Verilog code, there seem to be two ways of defining arguments in function declaration:
Method 1:
function factorial;
input [3:0] operand;
// More code
endfunction
Method 2:
function factorial(input [3:0] operand);
// More code
endfunction
Is there any difference between the two? Are both methods equally portable?
I believe they are equivalent.
From a manual the definition of a function: