[sv-ec] Use of void function in for-step

From: Kakoli Bhattacharya <kakoli_at_.....>
Date: Thu Aug 21 2008 - 00:11:37 PDT
Hello,

Consider the following example:

for(int i = 0; i<=10;func1(i,i))
    out = a + i;

where,
function void func1(input int in1,output int out1);
begin
    out1 = in1 + 1;
end
endfunction

All the standard tools are giving error for using 'func1' as for-step assignment.
I am not sure about the use of void function/task as for-step assignment.
Nothing is clearly stated in the LRM P1800-2005 also.
So is the above code correct?

Thanks,
Kakoli







-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Aug 21 00:20:16 2008

This archive was generated by hypermail 2.1.8 : Thu Aug 21 2008 - 00:20:55 PDT