help on generate statement!!

  • Thread starter Pooja Maheshwari
  • Start date
P

Pooja Maheshwari

Guest
Is declaring a localparam within generate scope
supported by IEEE1364-2001 standard?

I know that it is not supported, but ncverilog does not give any error.

Is standard got revised?

Thanks,
Pooja
 
Pooja Maheshwari <mpooja@agere.com> wrote in message news:<4074CBFD.5F73F52E@agere.com>...
Is declaring a localparam within generate scope
supported by IEEE1364-2001 standard?
No. However, there is no good reason for this. Localparams are
potentially very useful inside generate-for loops to define complex
constants computed from the genvar.

I know that it is not supported, but ncverilog does not give any error.
NC-Verilog allows and supports them. This is a useful extension to
the standard, and I expect other tools to follow suit eventually.

Is standard got revised?
The Errata Task Force of the Verilog Standards Group has passed an
extensive revision to the specification of generates. This fills in
holes, clarifies ambiguities, and changes some things from how they
were generally being interpreted to make them more implementable. It
also allows some things that had been unnecessarily restricted, like
localparams inside generate constructs.

These revisions still need to be approved by the VSG. Even then,
they are not revisions to the current standard. Since they are
substantive, that would require re-balloting by the IEEE. Instead,
I believe that they are revisions to the draft of the next standard,
which won't become official until balloted. However, I hope that
implementers will follow the new proposed revisions before then.

The existing standard has issues that are too likely to lead to
mutually incompatible implementations. This would create portability
problems that would limit how generates could be used. The revised
version is much clearer and cleaner to implement, which should avoid
that, if implementers are willing to treat it as the "de facto"
standard even before it is officially standardized.
 
Thanks for your reply.
It clarified my doubts.

- Pooja

Steven Sharp wrote:

Pooja Maheshwari <mpooja@agere.com> wrote in message news:<4074CBFD.5F73F52E@agere.com>...
Is declaring a localparam within generate scope
supported by IEEE1364-2001 standard?

No. However, there is no good reason for this. Localparams are
potentially very useful inside generate-for loops to define complex
constants computed from the genvar.

I know that it is not supported, but ncverilog does not give any error.

NC-Verilog allows and supports them. This is a useful extension to
the standard, and I expect other tools to follow suit eventually.

Is standard got revised?

The Errata Task Force of the Verilog Standards Group has passed an
extensive revision to the specification of generates. This fills in
holes, clarifies ambiguities, and changes some things from how they
were generally being interpreted to make them more implementable. It
also allows some things that had been unnecessarily restricted, like
localparams inside generate constructs.

These revisions still need to be approved by the VSG. Even then,
they are not revisions to the current standard. Since they are
substantive, that would require re-balloting by the IEEE. Instead,
I believe that they are revisions to the draft of the next standard,
which won't become official until balloted. However, I hope that
implementers will follow the new proposed revisions before then.

The existing standard has issues that are too likely to lead to
mutually incompatible implementations. This would create portability
problems that would limit how generates could be used. The revised
version is much clearer and cleaner to implement, which should avoid
that, if implementers are willing to treat it as the "de facto"
standard even before it is officially standardized.
 

Welcome to EDABoard.com

Sponsor

Back
Top