home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / vhdl / 614 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.5 KB  |  55 lines

  1. Newsgroups: comp.lang.vhdl
  2. Path: sparky!uunet!clsi!daniel
  3. From: daniel@clsi.COM (Daniel S. Barclay)
  4. Subject: Re: MCC, VHDL
  5. In-Reply-To: mandayrv@ucunix.san.uc.edu's message of Mon, 28 Dec 1992 20:10:40 GMT
  6. Message-ID: <DANIEL.92Dec29104657@algol.clsi.COM>
  7. Sender: usenet@clsi.COM
  8. Organization: CAD Language Systems Inc.
  9. References: <BzzK1s.FFB@ucunix.san.uc.edu>
  10. Date: 29 Dec 92 10:46:57
  11. Lines: 42
  12.  
  13. mandayrv@ucunix.san.uc.edu (Prince of Wales) writes:
  14. > I am using the MCC compiler/simulator to compile a VHDL file. When I have
  15. > the following line in the source file, the compiler complains that the range
  16. > has to be inside the ANSI C bounds of --2147483647 to +2147483647, which is
  17. > slightly bigger than 1E05. The LRM for VHDL defines that the minimum 
  18. > acceptable limits for any compiler are -1E38 to +1E38. Is there a catch
  19. > somewhere or is it purely a limitation of the MCC system.
  20.  
  21. 1.  You didn't include your following line so I can't see where you tried to
  22.     use a range.  Was it is an integer type definition, a floating-point
  23.     type definition, some other type definition, or somewhere else?
  24.  
  25. 2.  (I assume "--" in "--2147483647" is a typo.  Is that correct, or does it
  26.     mean something I don't recognize?)
  27.  
  28. 3.  (You say that "--2147483647 to +2147483647 [...] is slightly bigger than 
  29.     1E05."  What?  It's a _lot_ bigger than 1E05; it's a little bigger than
  30.     1E09.  Is there a typo here I didn't recognize?)
  31.  
  32. 4.  You say "The LRM for VHDL defines that the minimum acceptable limits for 
  33.     any compiler are -1E38 to +1E38."  That may indicate some confusion.
  34.     There are (at least) two minimums specified in the language:  The VHDL 
  35.     1987 LRM defines that an implementation must support a minimum range 
  36.     of -2147483647 to +2147483647 for an integer type.  It also defines a
  37.     the minimum range of -1.0E38 to +1.0E38 for a floating-point type.
  38.     (Yes, the LRM says 1E38 instead of 1.0E38, but the Interpretations 
  39.     document* says that that is a typo.)
  40.  
  41. 5.  I don't know if the MCC system complies with the standard or not. 
  42.     
  43. * (I think the title is "IEEE Standards Interpretations:  IEEE Std. 1076-1987
  44. IEEE Standard VHDL Language Reference Manual".)
  45.  
  46. I hope this answers your question.
  47.     
  48. --
  49. ------------------------------------------------------------------------------
  50. Daniel S. Barclay                    --who's still searching for a good 
  51. CAD Language Systems, Inc.           signature, not liking any of his recent
  52. Suite 101, 5457 Twin Knolls Rd.      feeble attempts to improve on the whiny:
  53. Columbia, MD  21045  USA             Why can't _I_ think of a good signature?
  54.  
  55.