aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-nodes_meta.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-12-08 06:23:21 +0100
committerTristan Gingold <tgingold@free.fr>2020-12-08 19:32:22 +0100
commit07a7f419eea89b3ab901642291650f49dfb24a36 (patch)
tree9b822b1730535ebcc5b5e26492aa4d86e0b4ab1d /src/vhdl/vhdl-nodes_meta.ads
parentebba3c77dc798f2e20ad6ba8a560a569faf1526b (diff)
downloadghdl-07a7f419eea89b3ab901642291650f49dfb24a36.tar.gz
ghdl-07a7f419eea89b3ab901642291650f49dfb24a36.tar.bz2
ghdl-07a7f419eea89b3ab901642291650f49dfb24a36.zip
vhdl: handle locally static attributes on entity/architecture/configurations
Attributes of entity/architecture/configurations are expected to be locally static so that they can be referenced from outside (so on the non-instantiated entity). But many designs break this assumption. In relaxed mode, non-locally static attributes are allowed but now cannot be referenced outside the entity. Locally static attributes can be referenced from outside. Fix #1528
Diffstat (limited to 'src/vhdl/vhdl-nodes_meta.ads')
-rw-r--r--src/vhdl/vhdl-nodes_meta.ads2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-nodes_meta.ads b/src/vhdl/vhdl-nodes_meta.ads
index c71c85928..cbfe0ac3b 100644
--- a/src/vhdl/vhdl-nodes_meta.ads
+++ b/src/vhdl/vhdl-nodes_meta.ads
@@ -108,6 +108,7 @@ package Vhdl.Nodes_Meta is
Field_Attribute_Designator,
Field_Attribute_Specification_Chain,
Field_Attribute_Specification,
+ Field_Static_Attribute_Flag,
Field_Signal_List,
Field_Quantity_List,
Field_Designated_Entity,
@@ -687,6 +688,7 @@ package Vhdl.Nodes_Meta is
function Has_Attribute_Specification_Chain (K : Iir_Kind)
return Boolean;
function Has_Attribute_Specification (K : Iir_Kind) return Boolean;
+ function Has_Static_Attribute_Flag (K : Iir_Kind) return Boolean;
function Has_Signal_List (K : Iir_Kind) return Boolean;
function Has_Quantity_List (K : Iir_Kind) return Boolean;
function Has_Designated_Entity (K : Iir_Kind) return Boolean;