[sv-bc] enumerated variable used with an equality operator

From: Neil Korpusik <neil.korpusik@oracle.com>
Date: Thu Mar 20 2014 - 17:24:39 PDT
Is the following legal? Should it be?

Neil



module top();

typedef enum {A,B,C,D} f_t;
typedef enum {X,Y,Z  } b_t;

initial begin
   f_t f;
   b_t b;

   f = A;
   if (f == X) $display("matched");   // legal?
end
endmodule

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 20 17:25:01 2014

This archive was generated by hypermail 2.1.8 : Thu Mar 20 2014 - 17:25:10 PDT