RE: [sv-bc] Query related with associative array assignment.

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Fri Nov 27 2009 - 07:47:51 PST
I think this is covered by Mantis 2802.

Shalom

________________________________
From: Surya Pratik Saha [mailto:spsaha@cal.interrasystems.com]
Sent: Friday, November 27, 2009 4:19 AM
To: Bresticker, Shalom
Cc: Dhiraj Kumar Prasad; sv-bc@server.eda.org
Subject: Re: [sv-bc] Query related with associative array assignment.

Hi Shalom,
I think then it is a mantis-able item and LRM needs correction as different standard tools understand it differently. Please confirm.

Regards
Surya



-------- Original Message  --------
Subject: Re:[sv-bc] Query related with associative array assignment.
From: Bresticker, Shalom <shalom.bresticker@intel.com><mailto:shalom.bresticker@intel.com>
To: Dhiraj Kumar Prasad <dhiraj@cal.interrasystems.com><mailto:dhiraj@cal.interrasystems.com>, sv-bc@server.eda.org<mailto:sv-bc@server.eda.org> <sv-bc@eda.org><mailto:sv-bc@eda.org>
Date: Thursday, November 26, 2009 9:33:43 PM

I think "same type" here should mean "matching type", as 6.22 in 1800-2009 says,

"Some constructs and operations require a certain level of type compatibility for their operands to be legal.
There are five levels of type compatibility, formally defined here: matching, equivalent, assignment compatible, cast compatible, and nonequivalent.

SystemVerilog does not require a category for identical types to be defined here because there is no construct in the SystemVerilog language that requires it. For example, as defined below, int can be interchanged with bit signed [31:0] wherever it is syntactically legal to do so."

So "matching" is the highest level of type compatibility.

Shalom




-----Original Message-----
From: owner-sv-bc@server.eda.org<mailto:owner-sv-bc@server.eda.org>
[mailto:owner-sv-bc@server.eda.org] On Behalf Of Dhiraj Kumar Prasad
Sent: Thursday, November 26, 2009 5:22 AM
To: sv-bc@server.eda.org<mailto:sv-bc@server.eda.org>
Cc: Dhiraj Kumar Prasad
Subject: [sv-bc] Query related with associative array assignment.

Hello,

I have a query related with associative array assignment.

According to LRM P1800-2005,section 5.11

"Associative arrays can be assigned only to another
associative array of
a compatible type and with the
 same index type."

So same type don't include equivalent type??

Does the following testcase should pass ??

Testcase
-------

module top();

typedef bit signed [31:0] bit32;
bit var1[][bit32];
bit var2[][int];

initial
    var1 = var2;
endmodule

As different standard simulator's are behaving in different way.

Regards,
dhiRAj




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




---------------------------------------------------------------------
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.




---------------------------------------------------------------------
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 Fri Nov 27 07:51:24 2009

This archive was generated by hypermail 2.1.8 : Fri Nov 27 2009 - 07:54:05 PST