[sv-ec] Enum type as associative array index type (7.8.6)

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Sat Mar 22 2014 - 16:36:41 PDT
As discussed in http://www.eda.org/svdb/view.php?id=4510 , if an enum variable has been assigned a value outside the enumeration set, and it is used as the index when writing to an associative array, is the write ignored as an "invalid index" in 7.8.6? For example,

module test;
typedef enum {A, B, C} ET;
bit assoc[ET];
initial begin
assoc[ET'(100)] = 1'b1;
$display(assoc.exists(ET'(100)));
end
endmodule

-- Brad

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Mar 22 16:36:56 2014

This archive was generated by hypermail 2.1.8 : Sat Mar 22 2014 - 16:37:10 PDT