aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-ieee-std_logic_unsigned.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-11 06:35:48 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-11 06:35:48 +0200
commitbca8844670a1a13964f42dc4223f720c4f405939 (patch)
treefaea5ea7788fe501195c0539969f9c90aee06564 /src/vhdl/vhdl-ieee-std_logic_unsigned.ads
parent2714a30c3753c76cda95eb994851a8be95e60ad9 (diff)
downloadghdl-bca8844670a1a13964f42dc4223f720c4f405939.tar.gz
ghdl-bca8844670a1a13964f42dc4223f720c4f405939.tar.bz2
ghdl-bca8844670a1a13964f42dc4223f720c4f405939.zip
vhdl: recognize std_logic_signed package (from synopsys).
Diffstat (limited to 'src/vhdl/vhdl-ieee-std_logic_unsigned.ads')
-rw-r--r--src/vhdl/vhdl-ieee-std_logic_unsigned.ads7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-ieee-std_logic_unsigned.ads b/src/vhdl/vhdl-ieee-std_logic_unsigned.ads
index 8ad54fd05..1e8cca5be 100644
--- a/src/vhdl/vhdl-ieee-std_logic_unsigned.ads
+++ b/src/vhdl/vhdl-ieee-std_logic_unsigned.ads
@@ -1,4 +1,4 @@
--- Nodes recognizer for ieee.std_logic_unsigned
+-- Nodes recognizer for ieee.std_logic_unsigned and ieee.std_logic_signed.
-- Copyright (C) 2019 Tristan Gingold
--
-- GHDL is free software; you can redistribute it and/or modify it under
@@ -17,6 +17,9 @@
-- 02111-1307, USA.
package Vhdl.Ieee.Std_Logic_Unsigned is
+ type Sign_Kind is (Pkg_Unsigned, Pkg_Signed);
+
-- Extract declarations from PKG .
- procedure Extract_Declarations (Pkg : Iir_Package_Declaration);
+ procedure Extract_Declarations
+ (Pkg : Iir_Package_Declaration; Sign : Sign_Kind);
end Vhdl.Ieee.Std_Logic_Unsigned;