From bca8844670a1a13964f42dc4223f720c4f405939 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 11 Oct 2019 06:35:48 +0200 Subject: vhdl: recognize std_logic_signed package (from synopsys). --- src/vhdl/vhdl-ieee-std_logic_unsigned.ads | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/vhdl/vhdl-ieee-std_logic_unsigned.ads') 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; -- cgit v1.2.3