aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_insts.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-04-28 17:37:26 +0200
committerTristan Gingold <tgingold@free.fr>2021-04-28 17:37:26 +0200
commite3a82f2e6894155cc030680332f31db6f79aba28 (patch)
tree664593aa4fbb76c2f8c8a38d13d31b9335f99472 /src/synth/synth-vhdl_insts.ads
parenta7334f5837fcc417173254707bc8acfc84120b47 (diff)
downloadghdl-e3a82f2e6894155cc030680332f31db6f79aba28.tar.gz
ghdl-e3a82f2e6894155cc030680332f31db6f79aba28.tar.bz2
ghdl-e3a82f2e6894155cc030680332f31db6f79aba28.zip
synth: file renaming for decls, expr, insts and stmts.
Diffstat (limited to 'src/synth/synth-vhdl_insts.ads')
-rw-r--r--src/synth/synth-vhdl_insts.ads47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_insts.ads b/src/synth/synth-vhdl_insts.ads
new file mode 100644
index 000000000..980b4ca8b
--- /dev/null
+++ b/src/synth/synth-vhdl_insts.ads
@@ -0,0 +1,47 @@
+-- Instantiation synthesis.
+-- Copyright (C) 2019 Tristan Gingold
+--
+-- This file is part of GHDL.
+--
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program. If not, see <gnu.org/licenses>.
+
+with Vhdl.Nodes; use Vhdl.Nodes;
+
+with Synth.Vhdl_Context; use Synth.Vhdl_Context;
+with Synth.Flags; use Synth.Flags;
+
+package Synth.Vhdl_Insts is
+ -- Create the declaration of the top entity.
+ procedure Synth_Top_Entity (Global_Instance : Synth_Instance_Acc;
+ Arch : Node;
+ Config : Node;
+ Encoding : Name_Encoding;
+ Inst : out Synth_Instance_Acc);
+
+ -- Synthesize the top entity and all the sub-modules.
+ procedure Synth_All_Instances;
+
+ -- Apply block configuration CFG to BLK.
+ -- Must be done before synthesis of BLK.
+ -- The synthesis of BLK will clear all configuration of it.
+ procedure Apply_Block_Configuration (Cfg : Node; Blk : Node);
+
+ procedure Synth_Design_Instantiation_Statement
+ (Syn_Inst : Synth_Instance_Acc; Stmt : Node);
+ procedure Synth_Blackbox_Instantiation_Statement
+ (Syn_Inst : Synth_Instance_Acc; Stmt : Node);
+
+ procedure Synth_Component_Instantiation_Statement
+ (Syn_Inst : Synth_Instance_Acc; Stmt : Node);
+end Synth.Vhdl_Insts;