From 6c529cda8ddfd60f2e9ffdfa839b4aacfc6bfe30 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 13 Oct 2019 20:48:11 +0200 Subject: vhdl-evaluation: handle bit condition operator. Fix #977 --- src/vhdl/vhdl-evaluation.adb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3