diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-22 19:01:40 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-22 21:31:27 +0200 |
commit | 9b40ca4a65f7ffbb2186393ed6db5b054ba7a494 (patch) | |
tree | 8f9da6e7a247cc7ceb96c3a4477553261539899f /src | |
parent | 1cea5c116af6f659ac635a4ff9f26c857f86e455 (diff) | |
download | ghdl-9b40ca4a65f7ffbb2186393ed6db5b054ba7a494.tar.gz ghdl-9b40ca4a65f7ffbb2186393ed6db5b054ba7a494.tar.bz2 ghdl-9b40ca4a65f7ffbb2186393ed6db5b054ba7a494.zip |
synth: ignore signal attribute.
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/synth-decls.adb | 6 | ||||
-rw-r--r-- | src/synth/synth-expr.adb | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb index 81d8a20c9..c53b4159c 100644 --- a/src/synth/synth-decls.adb +++ b/src/synth/synth-decls.adb @@ -893,6 +893,9 @@ package body Synth.Decls is null; when Iir_Kind_Configuration_Specification => null; + when Iir_Kind_Signal_Attribute_Declaration => + -- Not supported by synthesis. + null; when others => Vhdl.Errors.Error_Kind ("synth_declaration", Decl); end case; @@ -1016,6 +1019,9 @@ package body Synth.Decls is when Iir_Kind_Psl_Default_Clock => -- Ignored; directly used by PSL directives. null; + when Iir_Kind_Signal_Attribute_Declaration => + -- Not supported by synthesis. + null; when others => Vhdl.Errors.Error_Kind ("finalize_declaration", Decl); end case; diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 87f3c4ac1..49901c3db 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -2036,6 +2036,9 @@ package body Synth.Expr is Acc := Allocate_By_Value (V); return Create_Value_Access (Acc, Expr_Type); end; + when Iir_Kind_Stable_Attribute => + Error_Msg_Synth (+Expr, "signal attribute not supported"); + return No_Valtyp; when Iir_Kind_Overflow_Literal => Error_Msg_Synth (+Expr, "out of bound expression"); return No_Valtyp; |