Re: Minor enhancement request (AMS)


Subject: Re: Minor enhancement request (AMS)
From: Kevin Cameron x3251 (Kevin.Cameron@nsc.com)
Date: Thu Aug 01 2002 - 16:59:28 PDT


> From owner-sv-ec@server.eda.org Thu Aug 1 16:12:24 2002
>
> Kevin - your suggestion is inconsistent with existing verilog style - as it
> turns the assign keyword into a label

I should have said "block identifier" instead of label.

> I recommend you suggest requirements and not syntax snippets.... as it is
> very hard to get them right unless the whole context of the language is
> considered.

The requirement is to attach a user specified name to the equivalent
process e.g.:

    assign : a1 x = y;

 is logically equivalent to

    always @(*) begin : a1
      x = y;
    end

The context for this is fairly limited.

> fyi I think you already have what you want in systemverilog with:
>
> a1: assign foo = bar;

Isn't that just for procedural assigns?

[ I thought of suggesting it that way round, but it seemed inconsistent
with naming in blocks :-) ]

Kev.

> you just need to the tools to understand that the label refers to the
> statement (which it does) and this already works like this in the
> definition of assertions.
>
> QED.
>
> Simon
>
> At 03:56 PM 8/1/2002, Kevin Cameron x3251 wrote:
>
> >Does anyone have a major objection to adding optional names to continuous
> >assign statements e.g.
> >
> > BNF:
> >
> > continuous_assign ::== assign [ : label ] [drive strength] [ delay3 ]
> > <list of net assignments>
> >
> > for instance -
> >
> > assign : a1 foo = bar;
> >
> >The reason for wanting this is that multiple continuous assigns to
> >the same net are possible in the same module and Verilog-AMS will possibly
> >insert a D2A for each, but they are difficult to distinguish if you can't
> >name them. D2As are automatically inserted modules that have their instance
> >names generated from the signal and process names for debugging, control,
> >and hierarchical reference - e.g. "d2a__foo__a1" for the case above.
> >
> >Regards,
> >Kev.
> >
> >--
> >National Semiconductor
> >2900 Semiconductor Drive, Mail Stop A1-520, Santa Clara, CA 95052-8090
>
>
>



This archive was generated by hypermail 2b28 : Thu Aug 01 2002 - 17:01:38 PDT