aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_decls.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-05-27 09:56:56 +0200
committerTristan Gingold <tgingold@free.fr>2022-05-27 09:56:56 +0200
commit59f8a3d59f23bd787c95d5ba3258e3a0384dd61c (patch)
tree3152dc854c9f4e1002d3a44afef53be1de26078f /src/synth/elab-vhdl_decls.adb
parentad82dc96d97f0728c8b8f6ab7efa0ab9aa51f469 (diff)
downloadghdl-59f8a3d59f23bd787c95d5ba3258e3a0384dd61c.tar.gz
ghdl-59f8a3d59f23bd787c95d5ba3258e3a0384dd61c.tar.bz2
ghdl-59f8a3d59f23bd787c95d5ba3258e3a0384dd61c.zip
synth: handle suspend state declaration and statement
Diffstat (limited to 'src/synth/elab-vhdl_decls.adb')
-rw-r--r--src/synth/elab-vhdl_decls.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/synth/elab-vhdl_decls.adb b/src/synth/elab-vhdl_decls.adb
index 87c5dbd50..a60843716 100644
--- a/src/synth/elab-vhdl_decls.adb
+++ b/src/synth/elab-vhdl_decls.adb
@@ -281,6 +281,13 @@ package body Elab.Vhdl_Decls is
when Iir_Kind_Signal_Attribute_Declaration =>
-- Not supported by synthesis.
null;
+ when Iir_Kind_Suspend_State_Declaration =>
+ declare
+ Val : Valtyp;
+ begin
+ Val := Create_Value_Memory (Create_Memory_U32 (0));
+ Create_Object (Syn_Inst, Decl, Val);
+ end;
when others =>
Vhdl.Errors.Error_Kind ("elab_declaration", Decl);
end case;