diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-13 07:39:54 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-13 07:39:54 +0100 |
commit | 57182dfe1306ba624e04bf97559c8fc3c3a9dcf8 (patch) | |
tree | 32c2d800c16b49f077ab3e06f84e071a5ad833a7 /src/synth/synth-decls.adb | |
parent | 1b2a14b3f7cf9adbd600e36b1a581dc137316af7 (diff) | |
download | ghdl-57182dfe1306ba624e04bf97559c8fc3c3a9dcf8.tar.gz ghdl-57182dfe1306ba624e04bf97559c8fc3c3a9dcf8.tar.bz2 ghdl-57182dfe1306ba624e04bf97559c8fc3c3a9dcf8.zip |
synth: add support for file declarations.
Diffstat (limited to 'src/synth/synth-decls.adb')
-rw-r--r-- | src/synth/synth-decls.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb index 834aef561..774bebd06 100644 --- a/src/synth/synth-decls.adb +++ b/src/synth/synth-decls.adb @@ -20,6 +20,7 @@ with Types; use Types; with Mutils; use Mutils; + with Netlists; use Netlists; with Netlists.Builders; use Netlists.Builders; with Netlists.Folds; use Netlists.Folds; @@ -36,6 +37,7 @@ with Synth.Expr; use Synth.Expr; with Synth.Stmts; with Synth.Source; use Synth.Source; with Synth.Errors; use Synth.Errors; +with Synth.Files_Operations; package body Synth.Decls is procedure Synth_Anonymous_Subtype_Indication @@ -697,11 +699,14 @@ package body Synth.Decls is null; when Iir_Kind_File_Declaration => declare + F : File_Index; Res : Value_Acc; Obj_Typ : Type_Acc; begin + F := Synth.Files_Operations.Elaborate_File_Declaration + (Syn_Inst, Decl); Obj_Typ := Get_Value_Type (Syn_Inst, Get_Type (Decl)); - Res := Create_Value_File (Obj_Typ, 0); + Res := Create_Value_File (Obj_Typ, F); Create_Object (Syn_Inst, Decl, Res); end; when Iir_Kind_Psl_Default_Clock => |