Hi,
As per V2K LRM (10.4.2 Returning a value from a function):
The function definition shall implicitly declare a variable,
internal to the function, with the same name as the function.
Is it changed when the function is declared with void return type?
Is the following case legal?
module a;
function void fnc;
input x;
//integer fnc;
fnc : assert(0 == 1);
endfunction
endmodule
Some simulators pass if the function is declared inside class only. I
did not see anything mentioned in SV LRM.
--
Regards
Surya
--
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Received on Tue Jan 15 02:30:33 2008