Re: [sv-ec] Re: [sv-bc] Packed arrays


Subject: Re: [sv-ec] Re: [sv-bc] Packed arrays
From: Kevin Cameron x3251 (Kevin.Cameron@nsc.com)
Date: Thu Jan 30 2003 - 13:53:35 PST


> From: "Steven Sharp" <sharp@cadence.com>
>
> >Packed structs are equivalent to bit vectors, each bit (maybe) representing
> >a seperate physical wire. What I want to say is that a bundle of 64 wires can
> >be carrying a double or an integer or some other bit pattern.
>
> SV doesn't allow struct types for nets, only variables. It doesn't matter
> whether the struct is packed or not. So allowing reals in packed structs
> has no effect on whether you can carry them on vector nets.

There doesn't appear to be a good reason why you can't connect packed structs
through ports to me, but I don't need to since I can put the struct in an
interface and share it that way.
 
> If you are saying that you think it should be possible to have a vector net
> that carries a packed struct, then I agree with you. But that is a separate
> issue from whether reals should be allowed in packed structs.

But since we agree on the former we only have to argue about the latter :-)
 
> >It allows you to prefix any struct with "packed" and get a well defined
> >behavior rather than a compiler error, and lets you describe busses with
> >floating point fields (useful in a debugger if nothing else).
>
> The Verilog language already puts a lot of restrictions on reals that
> amount to a design philosophy that reals should not be treatable as a
> vector of bits. I haven't heard of anyone chafing over this.

Well, since people build hardware that processes reals as well as ints I see
no reason for making a distinction.

How would you describe a bus carrying a double value as well as other values?

Kev.
 
> Steven Sharp
> sharp@cadence.com



This archive was generated by hypermail 2b28 : Thu Jan 30 2003 - 13:54:47 PST