diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-10-13 20:48:11 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-10-13 20:48:11 +0200 |
commit | 6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30 (patch) | |
tree | 68ae5b6897d3ad8e5efdb10d1a498647a4a7a2b2 | |
parent | 67df90261a4b74f42de1995dfc9315cd01290ba4 (diff) | |
download | ghdl-6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30.tar.gz ghdl-6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30.tar.bz2 ghdl-6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30.zip |
vhdl-evaluation: handle bit condition operator. Fix #977
-rw-r--r-- | src/vhdl/vhdl-evaluation.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-evaluation.adb b/src/vhdl/vhdl-evaluation.adb index 1b5232767..64aec4488 100644 --- a/src/vhdl/vhdl-evaluation.adb +++ b/src/vhdl/vhdl-evaluation.adb @@ -647,6 +647,9 @@ package body Vhdl.Evaluation is | Iir_Predefined_Bit_Not => return Build_Enumeration (Get_Enum_Pos (Operand) = 0, Orig); + when Iir_Predefined_Bit_Condition => + return Build_Enumeration (Get_Enum_Pos (Operand) = 1, Orig); + when Iir_Predefined_TF_Array_Not => declare Lit_Val : Iir; |