aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/simulate/simul-execution.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-05-05 08:13:25 +0200
committerTristan Gingold <tgingold@free.fr>2019-05-05 13:55:18 +0200
commitec5cdde54b8b59e6bb0ecdd05938adc8f40e8521 (patch)
treedcaf93b4dc1ddda8b069d01f2e9dd8d06124a77d /src/vhdl/simulate/simul-execution.adb
parent79d521d70cc07e0afa6eb88632ca84aeadd3c62a (diff)
downloadghdl-ec5cdde54b8b59e6bb0ecdd05938adc8f40e8521.tar.gz
ghdl-ec5cdde54b8b59e6bb0ecdd05938adc8f40e8521.tar.bz2
ghdl-ec5cdde54b8b59e6bb0ecdd05938adc8f40e8521.zip
vhdl: move evaluation to vhdl child.
Diffstat (limited to 'src/vhdl/simulate/simul-execution.adb')
-rw-r--r--src/vhdl/simulate/simul-execution.adb12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vhdl/simulate/simul-execution.adb b/src/vhdl/simulate/simul-execution.adb
index 59d91c8ef..d40a093cb 100644
--- a/src/vhdl/simulate/simul-execution.adb
+++ b/src/vhdl/simulate/simul-execution.adb
@@ -23,7 +23,7 @@ with Grt.Types; use Grt.Types;
with Flags; use Flags;
with Errorout; use Errorout;
with Vhdl.Std_Package;
-with Evaluation;
+with Vhdl.Evaluation;
with Iirs_Utils; use Iirs_Utils;
with Simul.Annotations; use Simul.Annotations;
with Name_Table;
@@ -361,7 +361,7 @@ package body Simul.Execution is
function Execute_Path_Instance_Name_Attribute
(Block : Block_Instance_Acc; Attr : Iir) return Iir_Value_Literal_Acc
is
- use Evaluation;
+ use Vhdl.Evaluation;
use Grt.Vstrings;
use Name_Table;
@@ -1420,7 +1420,7 @@ package body Simul.Execution is
begin
Unit := Get_Unit_Chain (Vhdl.Std_Package.Time_Type_Definition);
while Unit /= Null_Iir loop
- exit when Evaluation.Get_Physical_Value (Unit)
+ exit when Vhdl.Evaluation.Get_Physical_Value (Unit)
= Iir_Int64 (Right.I64);
Unit := Get_Chain (Unit);
end loop;
@@ -2279,7 +2279,7 @@ package body Simul.Execution is
is
Prefix : constant Iir := Strip_Denoting_Name (Get_Prefix (Attr));
Dim : constant Natural :=
- Evaluation.Eval_Attribute_Parameter_Or_1 (Attr);
+ Vhdl.Evaluation.Eval_Attribute_Parameter_Or_1 (Attr);
begin
case Get_Kind (Prefix) is
when Iir_Kind_Type_Declaration
@@ -3076,7 +3076,7 @@ package body Simul.Execution is
| Iir_Kind_Physical_Fp_Literal
| Iir_Kind_Unit_Declaration =>
return Create_I64_Value
- (Ghdl_I64 (Evaluation.Get_Physical_Value (Expr)));
+ (Ghdl_I64 (Vhdl.Evaluation.Get_Physical_Value (Expr)));
when Iir_Kind_String_Literal8 =>
return Execute_String_Literal (Expr, Block);
@@ -4380,7 +4380,7 @@ package body Simul.Execution is
Get_Type (Get_Choice_Expression (Assoc));
Choice_Len : Iir_Int64;
begin
- Choice_Len := Evaluation.Eval_Discrete_Type_Length
+ Choice_Len := Vhdl.Evaluation.Eval_Discrete_Type_Length
(Get_String_Type_Bound_Type (Choice_Type));
if Choice_Len /= Iir_Int64 (Value.Bounds.D (1).Length) then
Error_Msg_Constraint (Expr);