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: Wed Jan 29 2003 - 10:31:19 PST


> From: "Steven Sharp" <sharp@cadence.com>
>
> >Date: Tue, 28 Jan 2003 23:46:08 -0800 (PST)
> >From: "Kevin Cameron" <sv-xx@grfx.com>
>
> >Sorry, I thought it was IEEE standard format.
>
> It is IEEE standard format, but that doesn't determine what order the
> machine will keep the bytes and/or words of it in.

Since the simulator can't use the bits representation directly anyway, it
seems to me that we could define the order for use in packed structs/unions
if we wanted. You could use unions and aliases to reorder the bits if necessary.

> >In that case shouldn't $realtobits and $bitstoreal be deprecated, I presume
> >they're only there to work around not having real type ports - which isn't
> >an issue anymore?
>
> They may not get used much in new code, but there is no need to remove
> them. They don't cause any problems.
>
> Steven Sharp
> sharp@cadence.com

I think their use should be discouraged.

Kev.



This archive was generated by hypermail 2b28 : Wed Jan 29 2003 - 10:32:19 PST