aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/simulate/simul-execution.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-18 18:14:40 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-18 18:19:30 +0100
commit48b78095ffa8bf349bec312d14812df264cacc32 (patch)
treed3477dc99f57878d99c54394bc6f5e1af70f4201 /src/vhdl/simulate/simul-execution.adb
parent7624e7bd83a1fea5b38f81a2d68f27acb78ed7a9 (diff)
downloadghdl-48b78095ffa8bf349bec312d14812df264cacc32.tar.gz
ghdl-48b78095ffa8bf349bec312d14812df264cacc32.tar.bz2
ghdl-48b78095ffa8bf349bec312d14812df264cacc32.zip
iir_kind_selected_element: use Named_Entity for homogeneity.
Diffstat (limited to 'src/vhdl/simulate/simul-execution.adb')
-rw-r--r--src/vhdl/simulate/simul-execution.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/simulate/simul-execution.adb b/src/vhdl/simulate/simul-execution.adb
index fd8e4bdbc..ddc0009fa 100644
--- a/src/vhdl/simulate/simul-execution.adb
+++ b/src/vhdl/simulate/simul-execution.adb
@@ -2719,7 +2719,7 @@ package body Simul.Execution is
begin
Execute_Name_With_Base
(Block, Get_Prefix (Expr), Base, Prefix, Is_Sig);
- Pos := Get_Element_Position (Get_Selected_Element (Expr));
+ Pos := Get_Element_Position (Get_Named_Entity (Expr));
Res := Prefix.Val_Record.V (Pos + 1);
end;
@@ -3581,7 +3581,7 @@ package body Simul.Execution is
end loop;
end;
when Iir_Kind_Selected_Element =>
- Pos := Get_Element_Position (Get_Selected_Element (Formal));
+ Pos := Get_Element_Position (Get_Named_Entity (Formal));
Store (Pfx.Val_Record.V (Pos + 1), Actual);
when others =>
Error_Kind ("associate_by_reference", Formal);