From 8d7b03576c37f9d762bfd701c68aedbbd7b16451 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Tue, 5 Aug 2008 10:38:43 +0100 Subject: [PATCH] Correctly implement unary XNOR Forgot to negate the output. --- tgt-vhdl/lpm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vhdl/lpm.cc b/tgt-vhdl/lpm.cc index fde076681..c6d11331f 100644 --- a/tgt-vhdl/lpm.cc +++ b/tgt-vhdl/lpm.cc @@ -251,7 +251,7 @@ static vhdl_expr *lpm_to_expr(vhdl_scope *scope, ivl_lpm_t lpm) case IVL_LPM_RE_XOR: return reduction_lpm_to_expr(scope, lpm, SF_REDUCE_XOR, false); case IVL_LPM_RE_XNOR: - return reduction_lpm_to_expr(scope, lpm, SF_REDUCE_XOR, false); + return reduction_lpm_to_expr(scope, lpm, SF_REDUCE_XOR, true); case IVL_LPM_SIGN_EXT: return sign_extend_lpm_to_expr(scope, lpm); case IVL_LPM_ARRAY: