home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.vhdl
- Path: sparky!uunet!clsi!shankha
- From: shankha@clsi.COM (Shankha Mitra)
- Subject: Re: Resolved signals
- Message-ID: <1992Jul31.154737.1407@clsi.COM>
- Originator: shankha@clsi
- Sender: usenet@clsi.COM
- Organization: CAD Language Systems, Inc.
- References: <memo.540055@cix.compulink.co.uk> <48320002@hpscit.sc.hp.com>
- Date: Fri, 31 Jul 92 15:47:37 GMT
- Lines: 49
-
-
- In article <48320002@hpscit.sc.hp.com>, doug@hpscit.sc.hp.com (Doug Sojourner) writes:
- > In comp.lang.vhdl, jmessenger@cix.compulink.co.uk (John Messenger) writes:
- >
- > > subtype RTYPE is RESOLVED INTEGER;
- > > type ARR is ARRAY (0 to 1) of RTYPE;
- > > signal S: ARR;
- >
- > > is S a resolved signal?
- >
- > Under the conditions above, S would be a resolved signal
- >
-
- I disagree. LRM 4.3.1.2 explicitly states:
- If the name of a resolution function appears in the declaration of a
- signal, or in the declaration of the subtype used to declare the
- signal, then that resolution function is associated with the declared
- signal. Such a signal is called a resolved signal.
-
- Since ARR doesn't have a resolution function associated with it in its
- declaration, S is NOT a resolved signal.
-
- You can declare S to be a resolved signal in two ways:
- signal S: resolution_function ARR;
- or,
- subtype RESOLVED_ARR is resolution_function ARR;
- signal S: RESOLVED_ARR;
-
- On the second method, the LRM 2.4 has the following to say:
- If a resolved signal is of a composite type, and subelements of that
- type also have associated resolution functions, such resolution
- functions have no effect on the process of determining the resolved
- value of the signal.
-
- So, it'll work okay.
-
- Shankha
-
- -------------------------------------------------------------------------------
- Shankha S. Mitra shankha@clsi.com
- CAD Language Systems, Inc. uunet!clsi.com!shankha
- 5457 Twin Knolls Rd, Suite 101
- Columbia, MD 21045 (410) 992-1716 ext. 226
- -------------------------------------------------------------------------------
- --
-
- -------------------------------------------------------------------------------
- Shankha S. Mitra shankha@clsi.com
- CAD Language Systems, Inc. uunet!clsi.com!shankha
-