From 5bafb1b3aaf6edebb5308a9c361844b4d4438b6a Mon Sep 17 00:00:00 2001 From: Christos Gentsos Date: Wed, 5 Jun 2019 15:14:23 +0200 Subject: synth: added support for vector "not" operation --- src/synth/synth-expr.adb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/synth') diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 39c5cc290..d13fc6cfc 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -526,12 +526,21 @@ package body Synth.Expr is (Build_Monadic (Build_Context, Id, Get_Net (Operand)), No_Range); end Synth_Bit_Monadic; + function Synth_Vec_Monadic (Id : Monadic_Module_Id) return Value_Acc is + Op: constant Net := Get_Net (Operand); + begin + return Create_Value_Net + (Build_Monadic (Build_Context, Id, Op), + Create_Res_Range (Operand, Op)); + end Synth_Vec_Monadic; begin case Def is when Iir_Predefined_Error => return null; when Iir_Predefined_Ieee_1164_Scalar_Not => return Synth_Bit_Monadic (Id_Not); + when Iir_Predefined_Ieee_1164_Vector_Not => + return Synth_Vec_Monadic (Id_Not); when others => Error_Msg_Synth (+Loc, -- cgit v1.2.3