aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_insts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-02 09:43:04 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-02 09:43:04 +0100
commit49705e73b9907b2fe3ea1de8e9ad406892ceaf4b (patch)
treec061f8af59320aba6f0638182556f44791c59cfb /src/synth/synth-vhdl_insts.adb
parentddf587a71472a8740b044c976b8f67c537ab0c06 (diff)
downloadghdl-49705e73b9907b2fe3ea1de8e9ad406892ceaf4b.tar.gz
ghdl-49705e73b9907b2fe3ea1de8e9ad406892ceaf4b.tar.bz2
ghdl-49705e73b9907b2fe3ea1de8e9ad406892ceaf4b.zip
synth: add support for nested packages
Diffstat (limited to 'src/synth/synth-vhdl_insts.adb')
-rw-r--r--src/synth/synth-vhdl_insts.adb9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/synth/synth-vhdl_insts.adb b/src/synth/synth-vhdl_insts.adb
index 88f023354..dbecfe0ab 100644
--- a/src/synth/synth-vhdl_insts.adb
+++ b/src/synth/synth-vhdl_insts.adb
@@ -1334,7 +1334,8 @@ package body Synth.Vhdl_Insts is
Bod : constant Node := Get_Package_Body (Dep_Unit);
Bod_Unit : Node;
begin
- Synth_Package_Declaration (Parent_Inst, Dep_Unit);
+ Synth_Concurrent_Package_Declaration
+ (Parent_Inst, Dep_Unit);
-- Do not try to elaborate math_real body: there are
-- functions with loop. Currently, try create signals,
-- which is not possible during package elaboration.
@@ -1343,11 +1344,13 @@ package body Synth.Vhdl_Insts is
then
Bod_Unit := Get_Design_Unit (Bod);
Synth_Dependencies (Parent_Inst, Bod_Unit);
- Synth_Package_Body (Parent_Inst, Dep_Unit, Bod);
+ Synth_Concurrent_Package_Body
+ (Parent_Inst, Dep_Unit, Bod);
end if;
end;
when Iir_Kind_Package_Instantiation_Declaration =>
- Synth_Package_Instantiation (Parent_Inst, Dep_Unit);
+ Synth_Concurrent_Package_Instantiation
+ (Parent_Inst, Dep_Unit);
when Iir_Kind_Package_Body =>
null;
when Iir_Kind_Architecture_Body =>