Article View: comp.lang.vhdl
Article #314What types should one use?
From: Larry Pearlstein
Date: Mon, 21 Dec 1992 15:55
Date: Mon, 21 Dec 1992 15:55
27 lines
1913 bytes
1913 bytes
I have been wrestling with the problem of choosing types, and would appreciate any help or comments on the matter. The most natural type for implementing designs which involve arithmetic operations is INTEGER, or INTEGER RANGE ... The most natural type for flags which are tested in IF statements is BOOLEAN. Also, it seems most natural to use enumerated types for designing state machines. The other option is to implement these quantities using multi-valued logic. For instance Synopsys provides arithmetic operations on MVL vectors called SIGNED and UNSIGNED. Also, the IEEE defines the MVL vector type STD_LOGIC_VECTOR, for which there exists 3rd party arithmetic packages. I'm not sure what could be done to replace BOOLEANs with MVL. The question is ... given that I intend to use VHDL to synthesize chips, what is the best strategy for choosing types? Is the use of MVL for simulation a virtual requirement for success, or will gate-level simulation typically turn up any problems that would have been caught by using MVL? Is it feasible to use more abstract types early in the design process (like INTEGER, enumerated, and BOOLEAN), and then migrate to MVL by using type re-definitions? How useful/indespensible is MVL for designing chips? If it is indespensible, then what place do abstract types have in chip design? Thanks for any wisdom, Larry Pearlstein lap@asl.hitachi.com
Technical Details
Message-ID:
<1992Dec21.155528.26802@sol.asl.hitachi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!yale.edu!jvnc.net!asl.hitachi.com!jcory!lapShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.vhdl Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!yale.edu!jvnc.net!asl.hitachi.com!jcory!lap From: lap@sol.asl.hitachi.com (Larry Pearlstein) Subject: What types should one use? Message-ID: <1992Dec21.155528.26802@sol.asl.hitachi.com> Sender: news@sol.asl.hitachi.com Nntp-Posting-Host: jcory Reply-To: lap@sol.asl.hitachi.com Organization: Hitachi America Ltd Date: Mon, 21 Dec 1992 15:55:28 GMT Lines: 27