diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-09 20:41:42 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-09 20:41:42 +0100 |
commit | 1712663b4188780ed2fd774d4d348fcc52b8f009 (patch) | |
tree | 97c6c74f98d5d9b7082d3ea8c6b3d10d8ab8d1ed | |
parent | 7e0dd7e8c24a2a772d921737bd8ca1cd406ad411 (diff) | |
download | ghdl-1712663b4188780ed2fd774d4d348fcc52b8f009.tar.gz ghdl-1712663b4188780ed2fd774d4d348fcc52b8f009.tar.bz2 ghdl-1712663b4188780ed2fd774d4d348fcc52b8f009.zip |
synth-static_oper: generalize "not".
-rw-r--r-- | src/synth/synth-static_oper.adb | 3 |
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 => |