aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/iirs_utils.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-20 06:22:58 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-20 06:22:58 +0100
commit7fd06aadb2e9863cb34f3dce468ac3ab0d39eb2c (patch)
tree7f06f1231b8f0c559d9289a47f79ec46bad832b6 /src/vhdl/iirs_utils.adb
parentabaeccd90ef5b83812fa2e71d4ce2aff8434df4e (diff)
downloadghdl-7fd06aadb2e9863cb34f3dce468ac3ab0d39eb2c.tar.gz
ghdl-7fd06aadb2e9863cb34f3dce468ac3ab0d39eb2c.tar.bz2
ghdl-7fd06aadb2e9863cb34f3dce468ac3ab0d39eb2c.zip
evaluation: tune evaluation of composite values.
Diffstat (limited to 'src/vhdl/iirs_utils.adb')
-rw-r--r--src/vhdl/iirs_utils.adb9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vhdl/iirs_utils.adb b/src/vhdl/iirs_utils.adb
index 4664f8dfa..5d407a3e6 100644
--- a/src/vhdl/iirs_utils.adb
+++ b/src/vhdl/iirs_utils.adb
@@ -1278,6 +1278,15 @@ package body Iirs_Utils is
end case;
end Is_Entity_Instantiation;
+ function Get_Attribute_Name_Expression (Name : Iir) return Iir
+ is
+ Attr_Val : constant Iir := Get_Named_Entity (Name);
+ Attr_Spec : constant Iir := Get_Attribute_Specification (Attr_Val);
+ Attr_Expr : constant Iir := Get_Expression (Attr_Spec);
+ begin
+ return Attr_Expr;
+ end Get_Attribute_Name_Expression;
+
function Get_String_Type_Bound_Type (Sub_Type : Iir) return Iir is
begin
if Get_Kind (Sub_Type) /= Iir_Kind_Array_Subtype_Definition then