Article View: comp.lang.vhdl
Article #289IEEE proposed standard package
From: Richard Newton II
Date: Tue, 16 Apr 1991 00:09
Date: Tue, 16 Apr 1991 00:09
45 lines
2721 bytes
2721 bytes
Hi all,
Another person here at Intel saw a problem with the proposed 9-value
logic package; I thought I'd post it, and maybe start a discussion.
Below is an extract from the v2.800 package posted to the net. The
concern is with the don't care state. It used to be '-', now it
is 'D'.
-- v2.300 | wdb | 10/24/90 | Changed '-' to 'D', deleted attributes
-- v2.400 | wdb | 11/12/90 | Fixed subtyped subtypes
-- v2.500 | wdb | 01/02/91 | Change output types of overloaded operators
-- v2.600 | wdb | 01/04/91 | Clean UP
-- v2.700 | wdb | 01/08/91 | Add Conversion functions to Bit
-- v2.800 | wdb | 03/03/91 | Pre-Ballot Cleanup
-- --------------------------------------------------------------------
-- Library IEEE; -- proposed location of this package
-- --------------------------------------------------------------------
PACKAGE logic_system is
-------------------------------------------------------------------
-- Logic State System (unresolved)
-------------------------------------------------------------------
TYPE std_ulogic is ( 'U', -- Unitialized
'X', -- Forcing 0 or 1
'0', -- Forcing 0
'1', -- Forcing 1
'Z', -- High Impedance
'W', -- Weak 0 or 1
'L', -- Weak 0 ( for ECL open emitter )
'H', -- Weak 1 ( for open Drain or Collector )
'D' -- don't care
);
If you had a vector of this type (say, an address) wouldn't the don't
care type get confused with the hex value D? This especially comes
into play when you have a simulator who's waveform display can show
user-defined types (like this one) as hex.
What was wrong with '-' as don't care, anyway?
Richard Newton II rnewton@mrmngo.intel.com
Intel Corp., 2625 Walsh Ave, Mail Stop SC4-69, Santa Clara, CA 95052-8122
Technical Details
Message-ID:
<3837@inews.intel.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!intelhf!ichips!iwarp.intel.com!inews!mrmngo!rnewtonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!intelhf!ichips!iwarp.intel.com!inews!mrmngo!rnewton From: rnewton@mrmngo.intel.com (Richard Newton II ) Newsgroups: comp.lang.vhdl Subject: IEEE proposed standard package Summary: don't care definition is confusing Keywords: IEEE standard package Message-ID: <3837@inews.intel.com> Date: 16 Apr 91 00:09:06 GMT Sender: news@inews.intel.com Reply-To: rnewton@mrmngo.UUCP (Richard Newton II ) Organization: Intel Corporation, Santa Clara, CA Lines: 45