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

  1. Newsgroups: comp.lang.vhdl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!yale.edu!jvnc.net!asl.hitachi.com!jcory!lap
  3. From: lap@sol.asl.hitachi.com (Larry Pearlstein)
  4. Subject: What types should one use?
  5. Message-ID: <1992Dec21.155528.26802@sol.asl.hitachi.com>
  6. Sender: news@sol.asl.hitachi.com
  7. Nntp-Posting-Host: jcory
  8. Reply-To: lap@sol.asl.hitachi.com
  9. Organization: Hitachi America Ltd
  10. Date: Mon, 21 Dec 1992 15:55:28 GMT
  11. Lines: 27
  12.  
  13. I have been wrestling with the problem of choosing types, and would appreciate
  14. any help or comments on the matter.
  15.  
  16. The most natural type for implementing designs which involve arithmetic operations
  17. is INTEGER, or INTEGER RANGE ...  The most natural type for flags which are tested
  18. in IF statements is BOOLEAN.  Also, it seems most natural to use enumerated types for
  19. designing state machines.
  20.  
  21. The other option is to implement these quantities using multi-valued logic.  For
  22. instance Synopsys provides arithmetic operations on MVL vectors called SIGNED and
  23. UNSIGNED.  Also, the IEEE defines the MVL vector type STD_LOGIC_VECTOR, for which
  24. there exists 3rd party arithmetic packages.  I'm not sure what could be done to
  25. replace BOOLEANs with MVL.
  26.  
  27. The question is ... given that I intend to use VHDL to synthesize chips, what is
  28. the best strategy for choosing types?  Is the use of MVL for simulation a virtual
  29. requirement for success, or will gate-level simulation typically turn up any problems
  30. that would have been caught by using MVL?  Is it feasible to use more abstract
  31. types early in the design process (like INTEGER, enumerated, and BOOLEAN), and then
  32. migrate to MVL by using type re-definitions?  How useful/indespensible is MVL for
  33. designing chips?  If it is indespensible, then what place do abstract types have in
  34. chip design?
  35.  
  36.                         Thanks for any wisdom,
  37.  
  38.                         Larry Pearlstein
  39.                         lap@asl.hitachi.com
  40.