OK, I have a question -- are the operands to the streaming concatenation self-determined? I would say they are. It seems to me that the whole point of streaming concatenation is to take a value as-is and convert it to a bit-stream to be reconstructed later on. Resizing the value based on the context would defeat the purpose.
I'm asking because I have a pcr against a leading simulator. The simulator developers seem to think that the operand (within the {}) of the streaming concat is sized based on the surrounding context.
Paul
----- Original Message -----
From: "Shalom Bresticker" <shalom.bresticker@intel.com>
To: "Surya Pratik Saha" <spsaha@cal.interrasystems.com>, sv-bc@eda.org
Cc: "Utsab" <utsab@cal.interrasystems.com>, "Subhankar Ghosh" <sghosh@cal.interrasystems.com>
Sent: Thursday, July 29, 2010 7:41:55 AM
Subject: RE: [sv-bc] Expression size while processing 'inside' construct
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 , 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. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Fri Jul 30 19:19:57 2010
This archive was generated by hypermail 2.1.8 : Fri Jul 30 2010 - 19:22:35 PDT