From f7b6325cb2b4ba5f722b5dceb3b36737a94fba47 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 7 Dec 2021 12:14:25 +0800 Subject: Fix opening files relative to the current vhdl This regressed in 86fd1ab3 ("synth: do full elaboration before synthesis") 1 Nov 2021 --- src/synth/elab-vhdl_insts.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/synth') 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)); -- cgit v1.2.3