mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
simplemap: Map $xnor
to $_XNOR_
cells
The previous mapping to `$_XOR_` and `$_NOT_` predates the addition of the `$_XNOR_` cell.
This commit is contained in:
parent
f9db7c0599
commit
661fa5ff92
3 changed files with 5 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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 <<EOT
|
||||
|
@ -36,7 +35,7 @@ EOT
|
|||
select -assert-count 2 t:$_XNOR_
|
||||
equiv_opt -assert opt_expr
|
||||
design -load postopt
|
||||
select -assert-none t:$_XNOR_ # NB: simplemap does $xnor -> $_XOR_+$_NOT_
|
||||
select -assert-none t:$_XNOR_
|
||||
select -assert-count 1 t:$_NOT_
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue