Re: case-generate grammar issues.


Subject: Re: case-generate grammar issues.
From: Krishna Garlapati (krishna@synplicity.com)
Date: Thu Aug 23 2001 - 00:02:01 PDT


Paul,

  My understanding is that a generated item can be a list of
declarations, instantations, continous_assignments, processe's
and other generate based statements ( for, case, block or if).

I dont think there is any limit on the number of statements inside
a generate_item, nor would it be fair to impose a restriction like
that.

Thanks,

- Krishna.
   

Paul Graham wrote:
>
> Krishna,
>
> I don't see any ambiguity. A generate_case_item contains exactly one
> generate_item_or_null. So it is impossible for "Y" to be considered as the
> start of another instantiation.
>
> Paul
>
> > generate
> > case (TYPE)
> > X : inst1 my_inst(a,b,ci,sum,co);
> > Y*10-Y+100 : inst2 my_inst(a,b,ci,sum,co);
> > default : inst3 my_inst(a,b,ci,sum,co);
> > endcase
>
> > since case branch here is essentially a generate_item
> > it gets real ugly to determine if the parser was reading
> > another instantiation or another branch on reading 'Y'
> > after it finishes with branch 1.

-- 
- Krishna.
Synplicity Inc.
(408)215-6152



This archive was generated by hypermail 2b28 : Thu Aug 23 2001 - 00:13:22 PDT