RE: [sv-bc] Expression size while processing 'inside' construct

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Thu Jul 29 2010 - 04:41:55 PDT

Hi, see Mantis 1805 (http://www.eda-stds.org/mantis/view.php?id=1805).

Shalom

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Surya Pratik Saha
Sent: Thursday, July 29, 2010 2:26 PM
To: sv-bc@eda.org
Cc: Utsab; Subhankar Ghosh
Subject: [sv-bc] Expression size while processing 'inside' construct

Hi,
We have a query regarding the size and sign handling of subexpression created while processing 'inside' construct.

Lets take a simple example:

bit [5:0] w
bit [3:0] x
bit [7:0] y
bit q;

 q = w inside {x, y};

 'inside' expr is processed as logical equality between w and x, w and y and finally reduction OR of the equality outputs:
  q = |((w == x), (w == y));

  The question is:
  Are operation (w == x) and (w == y) are self-determined or context-determined?
  If they're self-determined, while doing operation (w == x), x will be expanded to 6 bits.
  If they're context-determined, w and x would be expanded to 8 bit (max size is width of y).

Regards,
Surya

--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, 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.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jul 29 04:42:42 2010

This archive was generated by hypermail 2.1.8 : Thu Jul 29 2010 - 04:45:24 PDT