Re: case-generate grammar issues.


Subject: Re: case-generate grammar issues.
From: Paul Graham (pgraham@Cadence.COM)
Date: Thu Aug 23 2001 - 07:32:29 PDT


> 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).

Syntax table 12-3 says that the thing following the ':' of a case item is a
generate_item_or_null. This is:

    generate_item_or_null ::=
        generate_item
        | ;

    generate_item ::=
        generate_conditional_statement
        | generate_case_statement
        | generate_loop_statement
        | generate_block
        | module_or_generate_item

> 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.

A generate item consists of exactly one statement or declaration. Note that
a generate_block (begin/end) counts as one item. So if you want, say, two
instantiations after the ':' of a case statement, you have to use a generate
block anyway.

Paul

   



This archive was generated by hypermail 2b28 : Thu Aug 23 2001 - 07:39:12 PDT