aboutsummaryrefslogtreecommitdiffstats
path: root/src/simul
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-09-28 06:43:44 +0200
committerTristan Gingold <tgingold@free.fr>2022-09-28 06:43:44 +0200
commit5993986a91f3f41813b890e6b9d10cc5a3beea17 (patch)
treeabc04887c28d2784983f80d7ed161a7d1a19ea5b /src/simul
parente15f01013928d7023a1f6d4bc93aa59fef9bffcf (diff)
downloadghdl-5993986a91f3f41813b890e6b9d10cc5a3beea17.tar.gz
ghdl-5993986a91f3f41813b890e6b9d10cc5a3beea17.tar.bz2
ghdl-5993986a91f3f41813b890e6b9d10cc5a3beea17.zip
synth: handle null-range loops
Diffstat (limited to 'src/simul')
-rw-r--r--src/simul/simul-vhdl_simul.adb7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/simul/simul-vhdl_simul.adb b/src/simul/simul-vhdl_simul.adb
index 341e574d8..95048757b 100644
--- a/src/simul/simul-vhdl_simul.adb
+++ b/src/simul/simul-vhdl_simul.adb
@@ -533,15 +533,14 @@ package body Simul.Vhdl_Simul is
Param : constant Node :=
Get_Parameter_Specification (Parent);
Val : Valtyp;
+ Valid : Boolean;
begin
-- Update index
Val := Get_Value (Process.Instance, Param);
- Update_Index (Val.Typ.Drange, Val);
+ Update_Index (Val.Typ.Drange, Valid, Val);
-- Test.
- if Elab.Vhdl_Objtypes.In_Range (Val.Typ.Drange,
- Read_Discrete (Val))
- then
+ if Valid then
Stmt := Get_Sequential_Statement_Chain (Parent);
return;
end if;