aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-evaluation.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-13 20:48:11 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-13 20:48:11 +0200
commit6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30 (patch)
tree68ae5b6897d3ad8e5efdb10d1a498647a4a7a2b2 /src/vhdl/vhdl-evaluation.adb
parent67df90261a4b74f42de1995dfc9315cd01290ba4 (diff)
downloadghdl-6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30.tar.gz
ghdl-6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30.tar.bz2
ghdl-6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30.zip
vhdl-evaluation: handle bit condition operator. Fix #977
Diffstat (limited to 'src/vhdl/vhdl-evaluation.adb')
-rw-r--r--src/vhdl/vhdl-evaluation.adb3
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;