aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-09-15 03:13:52 +0200
committerTristan Gingold <tgingold@free.fr>2022-09-15 03:13:52 +0200
commit26353d25ad3eead54a5143df0f0298f142911670 (patch)
treec43c9ed800f4cd6552f36a373c0a037cb8364daf /src/synth
parent8ada97528f410837465f61128fadda39d2c854ee (diff)
downloadghdl-26353d25ad3eead54a5143df0f0298f142911670.tar.gz
ghdl-26353d25ad3eead54a5143df0f0298f142911670.tar.bz2
ghdl-26353d25ad3eead54a5143df0f0298f142911670.zip
synth: handle vhdl-87 files
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synth-vhdl_stmts.adb6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_stmts.adb b/src/synth/synth-vhdl_stmts.adb
index ad7382da9..45de83118 100644
--- a/src/synth/synth-vhdl_stmts.adb
+++ b/src/synth/synth-vhdl_stmts.adb
@@ -1967,6 +1967,12 @@ package body Synth.Vhdl_Stmts is
Copy_Memory (Val.Val.Mem,
Info.Obj.Val.Mem + Info.Off.Mem_Off,
Info.Targ_Type.Sz);
+ elsif Info.Kind = Target_Simple
+ and then Info.Obj.Val.Kind = Value_File
+ then
+ -- For vhdl-87
+ Val := Create_Value_File
+ (Info.Targ_Type, Info.Obj.Val.File, Instance_Pool);
else
Val := Synth_Read (Caller_Inst, Info, Assoc);
Val := Unshare (Val, Instance_Pool);