[sv-bc] Is simple decimal no. allowed in enum declaration

From: Surya Pratik Saha <spsaha_at_.....>
Date: Wed Oct 10 2007 - 08:11:02 PDT
Hi,
Consider the following case:

typedef enum bit signed [2:0] {mon,tues=2, wed, sun=-4} day;

As per LRM, the size of any decimal no. is at least 32. So for '2', 
error is expected. But most of the simulators fail for '-4', but not for 
'2' in the example. Any reason behind that.

-- 
Regards
Surya





-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Oct 10 08:12:32 2007

This archive was generated by hypermail 2.1.8 : Wed Oct 10 2007 - 08:13:00 PDT