aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorMatt Johnston <matt@codeconstruct.com.au>2021-12-07 12:14:25 +0800
committertgingold <tgingold@users.noreply.github.com>2021-12-07 08:00:56 +0100
commitf7b6325cb2b4ba5f722b5dceb3b36737a94fba47 (patch)
tree3a2ecb1638082a2dfb95d09b5c3abf6a5f2a18c5 /src/synth
parentf5cb7116f863b69bcc9b93a52e8b7b9d62273fd7 (diff)
downloadghdl-f7b6325cb2b4ba5f722b5dceb3b36737a94fba47.tar.gz
ghdl-f7b6325cb2b4ba5f722b5dceb3b36737a94fba47.tar.bz2
ghdl-f7b6325cb2b4ba5f722b5dceb3b36737a94fba47.zip
Fix opening files relative to the current vhdl
This regressed in 86fd1ab3 ("synth: do full elaboration before synthesis") 1 Nov 2021
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/elab-vhdl_insts.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb
index eb8d6b124..71adc953d 100644
--- a/src/synth/elab-vhdl_insts.adb
+++ b/src/synth/elab-vhdl_insts.adb
@@ -518,6 +518,8 @@ package body Elab.Vhdl_Insts is
Entity := Get_Entity (Arch);
Apply_Block_Configuration (Config, Arch);
+ Elab.Vhdl_Files.Set_Design_Unit (Arch);
+
Elab_Declarations (Syn_Inst, Get_Declaration_Chain (Entity));
Elab_Concurrent_Statements
(Syn_Inst, Get_Concurrent_Statement_Chain (Entity));