[sv-ec] FW: Vectors used in concatenation with string

From: Mehdi Mohtashemi <Mehdi.Mohtashemi_at_.....>
Date: Tue Jul 10 2007 - 09:04:51 PDT
FWD, non-subscriber question to the reflector.

________________________________

From: wojtekf [mailto:wojtek.filip@aldec.com] 
Sent: Tuesday, July 10, 2007 5:53 AM
To: owner-sv-ec@eda.org
Cc: 'Daniel Mlynek'
Subject: Vectors used in concatenation with string


Hello!
 
How should we treat string concatenation with integral types (e.g.
vector of  bit) ?  Is it legal at all ?  
I'm not sure about that after reading LRM. 
 
Let's say we have code :
 
...
bit [11:0] b1 = 12'b011001010010;
reg [6:0] r1 = 7'b0010100;

string str1,str2;

...
 
str1={str2,b1,r1};    

...
 
If above is legal what should be result?
a) b1 and r1 should be concatenated into one bit-stream and than
expanded to width equal 24 bits ( eight multiple)
 
b) b1 should be expanded to 16 bits, separately r1 should be expanded to
8 bits separately , than whole bit-stream would be assigned to str1.
 
c) something else??
 
 
Best regards,
Wojciech Filip

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , 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 Tue Jul 10 09:04:16 2007

This archive was generated by hypermail 2.1.8 : Tue Jul 10 2007 - 09:04:26 PDT