home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / vhdl / 383 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.2 KB  |  62 lines

  1. Newsgroups: comp.lang.vhdl
  2. Path: sparky!uunet!clsi!shankha
  3. From: shankha@clsi.COM (Shankha Mitra)
  4. Subject: Re: Resolved signals
  5. Message-ID: <1992Jul31.154737.1407@clsi.COM>
  6. Originator: shankha@clsi
  7. Sender: usenet@clsi.COM
  8. Organization: CAD Language Systems, Inc.
  9. References: <memo.540055@cix.compulink.co.uk> <48320002@hpscit.sc.hp.com>
  10. Date: Fri, 31 Jul 92 15:47:37 GMT
  11. Lines: 49
  12.  
  13.  
  14. In article <48320002@hpscit.sc.hp.com>, doug@hpscit.sc.hp.com (Doug Sojourner) writes:
  15. > In comp.lang.vhdl, jmessenger@cix.compulink.co.uk (John Messenger) writes:
  16. > > subtype RTYPE is RESOLVED INTEGER;
  17. > > type ARR is ARRAY (0 to 1) of RTYPE;
  18. > > signal S: ARR;
  19. > > is S    a resolved signal? 
  20. > Under the conditions above, S would be a resolved signal
  21.  
  22. I disagree.  LRM 4.3.1.2 explicitly states:
  23.    If the name of a resolution function appears in the declaration of a
  24.    signal, or in the declaration of the subtype used to declare the
  25.    signal, then that resolution function is associated with the declared
  26.    signal.  Such a signal is called a resolved signal. 
  27.  
  28. Since ARR doesn't have a resolution function associated with it in its
  29. declaration, S is NOT a resolved signal.
  30.  
  31. You can declare S to be a resolved signal in two ways:
  32.    signal S: resolution_function ARR;
  33. or,
  34.    subtype RESOLVED_ARR is resolution_function ARR;
  35.    signal S: RESOLVED_ARR;
  36.  
  37. On the second method, the LRM 2.4 has the following to say:
  38.    If a resolved signal is of a composite type, and subelements of that
  39.    type also have associated resolution functions, such resolution
  40.    functions have no effect on the process of determining the resolved
  41.    value of the signal.
  42.  
  43. So, it'll work okay.
  44.  
  45. Shankha
  46.  
  47. -------------------------------------------------------------------------------
  48. Shankha S. Mitra                                               shankha@clsi.com
  49. CAD Language Systems, Inc.                 uunet!clsi.com!shankha
  50. 5457 Twin Knolls Rd, Suite 101
  51. Columbia, MD 21045                    (410) 992-1716 ext. 226
  52. -------------------------------------------------------------------------------
  53. -- 
  54.  
  55. -------------------------------------------------------------------------------
  56. Shankha S. Mitra                                               shankha@clsi.com
  57. CAD Language Systems, Inc.                 uunet!clsi.com!shankha
  58.