Skip to content

Commit 88816cc

Browse files
committed
write_aiger2: support $barrier
1 parent 70646da commit 88816cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backends/aiger2/aiger.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
USING_YOSYS_NAMESPACE
2929
PRIVATE_NAMESPACE_BEGIN
3030

31-
#define BITWISE_OPS ID($buf), ID($not), ID($mux), ID($and), ID($or), ID($xor), ID($xnor), ID($fa), \
32-
ID($bwmux)
31+
#define BITWISE_OPS ID($buf), ID($barrier), ID($not), ID($mux), ID($and), ID($or), ID($xor), ID($xnor), \
32+
ID($fa), ID($bwmux)
3333

3434
#define REDUCE_OPS ID($reduce_and), ID($reduce_or), ID($reduce_xor), ID($reduce_xnor), ID($reduce_bool)
3535

@@ -331,7 +331,7 @@ struct Index {
331331
a = CFALSE;
332332
}
333333

334-
if (cell->type.in(ID($buf), ID($pos), ID($_BUF_))) {
334+
if (cell->type.in(ID($buf), ID($barrier), ID($pos), ID($_BUF_))) {
335335
return a;
336336
} else if (cell->type.in(ID($not), ID($_NOT_))) {
337337
return NOT(a);

0 commit comments

Comments
 (0)