RE: Mantis 2593 about non-ANSI port declarations (Was: [sv-bc] Mantis 1111, omitting range on port declaration)

From: Steven Sharp <sharp_at_.....>
Date: Fri May 01 2009 - 17:10:58 PDT
>From: "Stuart Sutherland" <stuart@sutherland-hdl.com>

>[SS] I seem to recall discussion long, long ago (perhaps on the 1364 PLI
>committee) that if the port did not have a range specification, and the
>internal net/variable did, then the port had an inferred [0:0] range which
>was matched against the internal net/variable declaration, which will likely
>not be identical and result in an error.

You may be recalling some speculation based on the idea that a scalar had
an inferred [0:0] range.  In fact, the LRM is clear that a scalar is not
the same as a 1-bit vector with a [0:0] range or any other range.

I don't think that it is necessary that the port have an inferred range
to say it is not identical to the other range.  Apples are not identical
to oranges.  They are also not identical to no apples.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri May 1 17:11:41 2009

This archive was generated by hypermail 2.1.8 : Fri May 01 2009 - 17:12:16 PDT