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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Aug 21 2008 - 01:06:55 PDT
I think it should be legal.
The BNF allows the step assignment to be a function call.
But I also see the simulators flagging errors.

Shalom

> 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?
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

This archive was generated by hypermail 2.1.8 : Thu Aug 21 2008 - 01:08:56 PDT