aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-stmts.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-09-11 06:31:00 +0200
committerTristan Gingold <tgingold@free.fr>2019-09-11 06:37:28 +0200
commitdb5c3b1cf051d215ee7f02064464b4b1088ea226 (patch)
treee5aaacca93241b2ca61aa7572deb9bd722663ba0 /src/synth/synth-stmts.ads
parent0e5e045b01b6425ae3551ad1c463d8f8f57907d7 (diff)
downloadghdl-db5c3b1cf051d215ee7f02064464b4b1088ea226.tar.gz
ghdl-db5c3b1cf051d215ee7f02064464b4b1088ea226.tar.bz2
ghdl-db5c3b1cf051d215ee7f02064464b4b1088ea226.zip
synth: improve support of return statement.
Diffstat (limited to 'src/synth/synth-stmts.ads')
-rw-r--r--src/synth/synth-stmts.ads11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/synth/synth-stmts.ads b/src/synth/synth-stmts.ads
index af83524b6..a60efab72 100644
--- a/src/synth/synth-stmts.ads
+++ b/src/synth/synth-stmts.ads
@@ -20,6 +20,9 @@
with Types; use Types;
with Vhdl.Nodes; use Vhdl.Nodes;
+
+with Netlists; use Netlists;
+
with Synth.Values; use Synth.Values;
with Synth.Context; use Synth.Context;
with Synth.Environment; use Synth.Environment;
@@ -68,16 +71,16 @@ private
W_En : Wire_Id;
- -- If set, condition of the next statement.
- W_Next : Wire_Id;
- -- If set, condition of the exit statement.
- W_Exit : Wire_Id;
-- If set, condition of the return statement.
W_Ret : Wire_Id;
-- Return value.
W_Val : Wire_Id;
+ Ret_Init : Net;
+
Ret_Value : Value_Acc;
+ Ret_Typ : Type_Acc;
+ Nbr_Ret : Int32;
end record;
end Synth.Stmts;