From 661fa5ff92f19675cfd87754a99d0c5c42c9df13 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Wed, 2 Nov 2022 17:45:46 +0100 Subject: simplemap: Map `$xnor` to `$_XNOR_` cells The previous mapping to `$_XOR_` and `$_NOT_` predates the addition of the `$_XNOR_` cell. --- tests/opt/opt_expr_xnor.ys | 2 +- tests/opt/opt_expr_xor.ys | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/opt/opt_expr_xnor.ys b/tests/opt/opt_expr_xnor.ys index f8ef0d352..225df7076 100644 --- a/tests/opt/opt_expr_xnor.ys +++ b/tests/opt/opt_expr_xnor.ys @@ -32,7 +32,7 @@ select -assert-count 1 c:* cd fine_keepdc simplemap opt_expr -keepdc -select -assert-count 1 t:$_XOR_ +select -assert-count 1 t:$_XNOR_ cd miter -equiv -flatten -make_assert -make_outputs gold coarse_keepdc miter3 diff --git a/tests/opt/opt_expr_xor.ys b/tests/opt/opt_expr_xor.ys index 8874f2775..9edec35d6 100644 --- a/tests/opt/opt_expr_xor.ys +++ b/tests/opt/opt_expr_xor.ys @@ -22,9 +22,8 @@ simplemap equiv_opt -assert opt_expr design -load postopt select -assert-none t:$_XOR_ -select -assert-none t:$_XNOR_ # NB: simplemap does $xnor -> $_XOR_+$_NOT_ -select -assert-count 3 t:$_NOT_ - +select -assert-none t:$_XNOR_ +select -assert-count 2 t:$_NOT_ design -reset read_verilog -icells < $_XOR_+$_NOT_ +select -assert-none t:$_XNOR_ select -assert-count 1 t:$_NOT_ -- cgit v1.2.3