Forum Discussion
Altera_Forum
Honored Contributor
10 years agomodelsim compiling error:external function 'xxxxx' may not be used in a constant expr
Consider the following code: package pkg;
function bit bitgen(int bit1idx);
automatic bit res = '0;
if (bit1idx >= 0 && bit1idx < 16)
res = 1'b1;
return res;
endfunction
func...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- It has no impact on typedefs. It only affects the lifetimes of variables declared inside named blocks, functions or tasks. --- Quote End --- OK! Thank you! I've learned so much form your patient replying! Thank you very much!