Re: [sv-bc] if statement


Subject: Re: [sv-bc] if statement
From: Rishiyur S. Nikhil (nikhil@bluespec.com)
Date: Tue Nov 25 2003 - 08:44:57 PST


Francoise, it is my understanding that you cannot use an unpacked var.

The semantics of if and case are given in terms of whether the bits
contain 0, 1, x, or z bits, and I don't think this is meaningful
for unpacked items.

(I'll let the experts correct me if my understanding is wrong!)

Nikhil

Francoise Martinolle wrote:

> Which type of expression can you use as a condition expression to an if
> statement?
> Can you have a unpacked struct, union or array type variable?
>
> if (structVar)
> do...
>
> What are the semantics of if (structvar)?
>



This archive was generated by hypermail 2b28 : Tue Nov 25 2003 - 08:45:35 PST