Re: [sv-bc] logic A[ 2'b11<<1 ]

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Tue Oct 03 2006 - 07:16:28 PDT
Bresticker, Shalom wrote:

> Let's see...
> 
> "2'b11 << 1" is a self-determined expression. 

Yes, and the other key piece is that the rule for
"i << j" is that the result width is L(i) so the width
of "1" (32 bits) is immaterial.


> That means that the result is 2'b10, i.e., 2.

Yes.

Gord.


> 
> So it should be the same as 
> 
> logic A[2], 
> 
> which is the same as
> 
> logic A{0:1].
> 
> So the answer to the question is, A has 2 elements, A[0] and A[1].
> 
> Shalom
> 
> 
> 
>>-----Original Message-----
>>From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
> 
> On
> 
>>Behalf Of Greg Jaxon
>>Sent: Tuesday, October 03, 2006 11:13 AM
>>To: SV_BC List
>>Subject: [sv-bc] logic A[ 2'b11<<1 ]
>>
>>How many elements does A have?
> 
> 
> 

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com
Received on Tue Oct 3 07:16:31 2006

This archive was generated by hypermail 2.1.8 : Tue Oct 03 2006 - 07:16:51 PDT