aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/synth/synth-static_oper.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb
index 504110072..04be4d246 100644
--- a/src/synth/synth-static_oper.adb
+++ b/src/synth/synth-static_oper.adb
@@ -684,7 +684,8 @@ package body Synth.Static_Oper is
when Iir_Predefined_Ieee_1164_Scalar_Not =>
return Create_Value_Discrete
- (Std_Ulogic'Pos (Not_Table (Std_Ulogic'Val (Operand.Scal))),
+ (Std_Ulogic'Pos
+ (Not_Table (Std_Ulogic'Val (Get_Static_Discrete (Operand)))),
Oper_Typ);
when Iir_Predefined_Ieee_1164_Vector_Or_Reduce =>