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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Tue Oct 03 2006 - 03:24:43 PDT
Let's see...

"2'b11 << 1" is a self-determined expression. 
That means that the result is 2'b10, i.e., 2.

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?
Received on Tue Oct 3 03:24:58 2006

This archive was generated by hypermail 2.1.8 : Tue Oct 03 2006 - 03:25:12 PDT