RE: Errata - RE : [sv-bc] A question about type casting

From: Maidment, Matthew R <matthew.r.maidment@intel.com>
Date: Thu Mar 25 2004 - 10:42:00 PST

I'm no fan of loaded answers, but I'll bite.

So how are the datatypes of

  wire [2:0] wiremda [1:0];
 logic [2:0] logicmda [1:0];

different?

Matt

>-----Original Message-----
>From: Steven Sharp [mailto:sharp@cadence.com]
>Sent: Wednesday, March 24, 2004 5:31 PM
>To: Jacobi, Dan; sv-bc@eda.org; Maidment, Matthew R
>Subject: RE: Errata - RE : [sv-bc] A question about type casting
>
>
>>In summary, it is most useful that these:
>>
>> wire [2:0] wiremda [1:0];
>> logic [2:0] logicmda [1:0];
>>
>>are assignment compatible in one easy step:
>>
>> assign logicmda = wiremda;
>> assign wiremda = logicmda;
>>
>>I'd prefer that type equivalence be used very carefully
>>in this section or ensure that a provision for the above
>>is maintained.
>
>
>If you could declare nets of the same datatypes as variables,
>then this would be possible, regardless of the type compatibility
>requirements.
>
>Steven Sharp
>sharp@cadence.com
>
>
Received on Thu Mar 25 10:42:59 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 25 2004 - 10:43:26 PST