From 9ea42a0fd9915002d00509da079ef92309514a00 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 12 Jan 2020 21:41:07 +0100 Subject: synth-static_oper: handle unary not for std_logic. For #1080 --- src/synth/synth-static_oper.adb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb index 9a191a26f..02662ab1e 100644 --- a/src/synth/synth-static_oper.adb +++ b/src/synth/synth-static_oper.adb @@ -509,6 +509,11 @@ package body Synth.Static_Oper is when Iir_Predefined_Ieee_1164_Vector_Not => return Synth_Vector_Monadic (Operand, Not_Table); + when Iir_Predefined_Ieee_1164_Scalar_Not => + return Create_Value_Discrete + (Std_Ulogic'Pos (Not_Table (Std_Ulogic'Val (Operand.Scal))), + Oper_Typ); + when Iir_Predefined_Ieee_1164_Vector_Or_Reduce => return Synth_Vector_Reduce ('0', Operand, Or_Table); -- cgit v1.2.3