aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_insts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-04-18 21:13:34 +0200
committerTristan Gingold <tgingold@free.fr>2023-04-18 21:13:34 +0200
commit04b44b782355c0661b6ec7053f204da9b6185759 (patch)
tree110a4260e70cbd2d38b5ab961ab901740f962f36 /src/synth/elab-vhdl_insts.adb
parent10d6f0c3520c2ebb93091f635014c6cd4c35631f (diff)
downloadghdl-04b44b782355c0661b6ec7053f204da9b6185759.tar.gz
ghdl-04b44b782355c0661b6ec7053f204da9b6185759.tar.bz2
ghdl-04b44b782355c0661b6ec7053f204da9b6185759.zip
elab-vhdl_insts: set global variable with top instance
Diffstat (limited to 'src/synth/elab-vhdl_insts.adb')
-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 25984a8fa..ac60a49f9 100644
--- a/src/synth/elab-vhdl_insts.adb
+++ b/src/synth/elab-vhdl_insts.adb
@@ -1042,6 +1042,8 @@ package body Elab.Vhdl_Insts is
pragma Assert (Is_Expr_Pool_Empty);
+ Top_Instance := Top_Inst;
+
Elab_Instance_Body (Top_Inst);
pragma Assert (Areapools.Is_Empty (Expr_Pool));