RE: [sv-bc] enum range with keyword

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Mon Mar 22 2010 - 14:26:58 PDT

Hi,

> Just curious, what was the original motivation behind this
> enum range syntax? How is it considered useful to generate a
> bunch of enum names like n_1, n_2, ..., n_10 automatically?

I imagine one motivation is that it makes it easy to generate a large set of value names automatically without having to write names manually one by one. Something like auto-generation of coverage bins.

>
> And I don't really want to suggest adding any new features,
> but why is this automatic name generation facility only
> defined for enums? Why not for wires?

Actually, you do have it for wires, in the form of an array.

wire a[5};

generates a set of 5 wires.

Regards,
Shalom
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 22 14:29:42 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 22 2010 - 14:29:45 PDT