Correctly implement unary XNOR

Forgot to negate the output.
This commit is contained in:
Nick Gasson 2008-08-05 10:38:43 +01:00
parent 72019959a8
commit 8d7b03576c
1 changed files with 1 additions and 1 deletions

View File

@ -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: