RE: [sv-cc] Re: [sv-bc] realtime is by default signed or unsigned.

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Apr 03 2008 - 04:49:07 PDT
An array assignment requires that the array elements be type equivalent.
realtime and logic signed[63:0] are not type equivalent.
So I think the array assignment is illegal, but not for the reason
displayed.
 
Shalom


________________________________

	From: owner-sv-cc@server.eda.org
[mailto:owner-sv-cc@server.eda.org] On Behalf Of Dhiraj Kumar Prasad
	Sent: Thursday, April 03, 2008 7:41 AM
	To: Steven Sharp
	Cc: sv-bc@server.eda.org; sv-cc@server.eda.org; Dhiraj Kumar
Prasad
	Subject: [sv-cc] Re: [sv-bc] realtime is by default signed or
unsigned.
	
	
	Hi Steven,
	
	Consider the following example.
	
	module tmp();
	logic signed [63:0] var1 [1:0];
	realtime var2[1:0];
	
	initial
	var2 = var1;
	
	endmodule
	
	For above testcase some simulator is showing error as "Array
elements must both be signed or both be unsigned" while
	some is passing.
	
	So I was in confusion that whether is should be treated as
signed or unsigned.
	
	Thanks
	Dhiraj
	
	Steven Sharp wrote: 

			From: Dhiraj Kumar Prasad
<dhiraj@cal.interrasystems.com> <mailto:dhiraj@cal.interrasystems.com> 
			    

		
		  

			I have a query related to realtime. realtime by
default is signed or 
			unsigned ??.
			    

		
		realtime is equivalent to real, which is a floating
point number.  It
		is inherently signed and there is no unsigned version of
it.
		
		
		  

			Different simulator is treating it in different
way.
			    

		
		What behavior are you seeing that you interpret as
unsigned?
		
		Steven Sharp
		sharp@cadence.com
		
		
		  



	-- 
	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 Apr 3 05:08:16 2008

This archive was generated by hypermail 2.1.8 : Thu Apr 03 2008 - 05:09:30 PDT