RE: [sv-bc] Array query return type errata


Subject: RE: [sv-bc] Array query return type errata
From: Stuart Sutherland (stuart@sutherland-hdl.com)
Date: Wed Feb 18 2004 - 10:15:04 PST


Dave,
 
If the return type is the integer data type, which is at least 32 bits wide,
shouldn't an error return an integer with all bits set to X, instead of just
1 bit set to X? If the return is a 1'bx, which bit of the integer is set to
X?
 
Stu
~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart Sutherland
stuart@sutherland-hdl.com
503-692-0898
 

  _____

From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Dave Rich
Sent: Wednesday, February 18, 2004 12:43 AM
To: Sv-Bc
Subject: [sv-bc] Array query return type errata

Section 23.7 does not specify the return type the system functions. It can
only be "integer" in order to return an integer value or X. Also returning X
should actually be 1'bx to be consistent with other system functions that
return 1'bx.

In section 23.7

The return type is integer and the default for the optional dimension
expression is 1.

If an out-of-range dimension is specified, these functions shall return a
logic X1'bx.

If the dimension is currently empty, these functions shall return a logic
X1'bx.

-- 

--

David.Rich@Synopsys.com

Technical Marketing Consultant and/or

Principal Product Engineer

http://www.SystemVerilog.org

tele: 650-584-4026

cell: 510-589-2625



This archive was generated by hypermail 2b28 : Wed Feb 18 2004 - 10:22:54 PST