aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/synth/synth-expr.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb
index a12e8725b..2e70dafec 100644
--- a/src/synth/synth-expr.adb
+++ b/src/synth/synth-expr.adb
@@ -1445,10 +1445,14 @@ package body Synth.Expr is
& "either constant or dynamic");
return;
end if;
+
Synth_Extract_Dyn_Suffix
(Get_Build (Syn_Inst), Name,
Pfx_Bnd, Get_Net (Left), Get_Net (Right), Inp, Step, Off.Net_Off,
Res_Bnd.Len);
+ if Inp = No_Net then
+ return;
+ end if;
Inp_W := Get_Width (Inp);
-- FIXME: convert range to offset.
-- Extract max from the range.