mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
write_btor: support $_BUF_
This commit is contained in:
parent
9047290683
commit
d7c6688905
1 changed files with 2 additions and 2 deletions
|
@ -508,7 +508,7 @@ struct BtorWorker
|
||||||
goto okay;
|
goto okay;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cell->type.in(ID($not), ID($neg), ID($_NOT_), ID($pos), ID($buf)))
|
if (cell->type.in(ID($not), ID($neg), ID($_NOT_), ID($pos), ID($buf), ID($_BUF_)))
|
||||||
{
|
{
|
||||||
string btor_op;
|
string btor_op;
|
||||||
if (cell->type.in(ID($not), ID($_NOT_))) btor_op = "not";
|
if (cell->type.in(ID($not), ID($_NOT_))) btor_op = "not";
|
||||||
|
@ -522,7 +522,7 @@ struct BtorWorker
|
||||||
|
|
||||||
// the $pos/$buf cells just pass through, all other cells need an actual operation applied
|
// the $pos/$buf cells just pass through, all other cells need an actual operation applied
|
||||||
int nid = nid_a;
|
int nid = nid_a;
|
||||||
if (!cell->type.in(ID($pos), ID($buf)))
|
if (!cell->type.in(ID($pos), ID($buf), ID($_BUF_)))
|
||||||
{
|
{
|
||||||
log_assert(!btor_op.empty());
|
log_assert(!btor_op.empty());
|
||||||
int sid = get_bv_sid(width);
|
int sid = get_bv_sid(width);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue