[sv-bc] Some query related with enum.

From: Dhiraj Kumar Prasad <dhiraj_at_.....>
Date: Mon Aug 25 2008 - 05:40:04 PDT
Hi,

Below is the four different example of enum declaration.

typedef enum reg signed [1:0] { RED = 2'sb10,YELLOW,GREEN = 2'b00} light;
typedef enum reg signed [1:0] { RED = 2'sb10,YELLOW,GREEN = 2'b11} light;
typedef enum reg signed [1:0] { RED = 2'sb10,YELLOW,GREEN = 2'b10} light;
typedef enum reg signed [1:0] { RED = 2'sb10,YELLOW,GREEN = 3} light;

Can you let me know that which one should be correct and which one are 
wrong as
different simulator are behaving in different way.

Thanks,
Dhiraj




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Aug 25 05:49:18 2008

This archive was generated by hypermail 2.1.8 : Mon Aug 25 2008 - 05:50:48 PDT