From f7c926427b508adeeb0a7d8323de235181bf9775 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 4 Dec 2016 06:54:19 +0100 Subject: ieee-std_logic_1164.ads: declare position of std_ulogic literals. --- src/vhdl/ieee-std_logic_1164.ads | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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. -- cgit v1.2.3