mirror of https://github.com/YosysHQ/yosys.git
smt2: Treat bweqx as xnor
Without x-bits they are equivalent
This commit is contained in:
parent
62afe61779
commit
673ad561b8
|
@ -640,6 +640,7 @@ struct Smt2Worker
|
|||
if (cell->type == ID($xor)) return export_bvop(cell, "(bvxor A B)");
|
||||
if (cell->type == ID($xnor)) return export_bvop(cell, "(bvxnor A B)");
|
||||
|
||||
if (cell->type == ID($bweqx)) return export_bvop(cell, "(bvxnor A B)", 'U');
|
||||
if (cell->type == ID($bwmux)) return export_bvop(cell, "(bvor (bvand A (bvnot S)) (bvand B S))", 'U');
|
||||
|
||||
if (cell->type == ID($shl)) return export_bvop(cell, "(bvshl A B)", 's');
|
||||
|
|
Loading…
Reference in New Issue