diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-12-04 06:54:19 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-12-29 09:08:48 +0100 |
commit | f7c926427b508adeeb0a7d8323de235181bf9775 (patch) | |
tree | 6b9a9e5ab4cf284f45caccbcc290c116ffddda0b /src/vhdl/ieee-std_logic_1164.ads | |
parent | 1b0f8eb68d4107084207ab6ab7bfb84cf10f204a (diff) | |
download | ghdl-f7c926427b508adeeb0a7d8323de235181bf9775.tar.gz ghdl-f7c926427b508adeeb0a7d8323de235181bf9775.tar.bz2 ghdl-f7c926427b508adeeb0a7d8323de235181bf9775.zip |
ieee-std_logic_1164.ads: declare position of std_ulogic literals.
Diffstat (limited to 'src/vhdl/ieee-std_logic_1164.ads')
-rw-r--r-- | src/vhdl/ieee-std_logic_1164.ads | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vhdl/ieee-std_logic_1164.ads b/src/vhdl/ieee-std_logic_1164.ads index b1f14f272..7b11ded48 100644 --- a/src/vhdl/ieee-std_logic_1164.ads +++ b/src/vhdl/ieee-std_logic_1164.ads @@ -28,6 +28,17 @@ package Ieee.Std_Logic_1164 is Rising_Edge : Iir_Function_Declaration := Null_Iir; Falling_Edge : Iir_Function_Declaration := Null_Iir; + -- Position of literals (D represents '-' ie dont-care). + Std_Logic_U_Pos : constant := 0; + Std_Logic_X_Pos : constant := 1; + Std_Logic_0_Pos : constant := 2; + Std_Logic_1_Pos : constant := 3; + Std_Logic_Z_Pos : constant := 4; + Std_Logic_L_Pos : constant := 5; + Std_Logic_H_Pos : constant := 6; + Std_Logic_W_Pos : constant := 7; + Std_Logic_D_Pos : constant := 8; + -- Extract declarations from PKG. -- PKG is the package declaration for ieee.std_logic_1164 package. -- Fills the node aboves. |