Subject: Re: contribution stmts in loops
From: Kevin Cameron x3251 (dkc@galaxy.nsc.com)
Date: Wed May 01 2002 - 13:52:14 PDT
> From owner-verilog-ams@eda.org Tue Apr 30 01:19:42 2002
>
> Is contribution statements allowed inside repeat while conditions?
>
> analog begin
> i = 2;
> repeat (i)
> V(a,b) <+ I(a,b) * 10; // should this be allowed?
> end
>
> cheers,
> Sri
In theory anything you can unroll and the branch structure remains
constant could be allowed. If you can't tell in advance (easily)
then it is better to disallow a construct.
In the case above the branch usage does not depend on the reptition
so it should probably be allowed, but it is probably implementation
dependent whether you can do it in general. As it's semantics
rather than syntax, we can ban it for now and remove the restriction
later if the demand is there.
Kev.
This archive was generated by hypermail 2b28 : Wed May 01 2002 - 13:54:40 PDT