mirror of https://github.com/YosysHQ/yosys.git
Aiger use defines for known ops.
This commit is contained in:
parent
04822c6660
commit
16b1a914f1
|
|
@ -47,24 +47,16 @@ PRIVATE_NAMESPACE_BEGIN
|
||||||
|
|
||||||
static constexpr auto known_ops = []() constexpr {
|
static constexpr auto known_ops = []() constexpr {
|
||||||
StaticCellTypes::Categories::Category c{};
|
StaticCellTypes::Categories::Category c{};
|
||||||
// bitwise
|
for (auto id : {BITWISE_OPS})
|
||||||
for (auto id : {ID($buf), ID($not), ID($mux), ID($and), ID($or), ID($xor), ID($xnor), ID($fa), ID($bwmux)})
|
|
||||||
c.set_id(id);
|
c.set_id(id);
|
||||||
// reduce
|
for (auto id : {REDUCE_OPS})
|
||||||
for (auto id : {ID($reduce_and), ID($reduce_or), ID($reduce_xor), ID($reduce_xnor), ID($reduce_bool)})
|
|
||||||
c.set_id(id);
|
c.set_id(id);
|
||||||
// logic
|
for (auto id : {LOGIC_OPS})
|
||||||
for (auto id : {ID($logic_and), ID($logic_or), ID($logic_not)})
|
|
||||||
c.set_id(id);
|
c.set_id(id);
|
||||||
// gates
|
for (auto id : {GATE_OPS})
|
||||||
for (auto id : {ID($_BUF_), ID($_NOT_), ID($_AND_), ID($_NAND_), ID($_OR_), ID($_NOR_),
|
|
||||||
ID($_XOR_), ID($_XNOR_), ID($_ANDNOT_), ID($_ORNOT_), ID($_MUX_), ID($_NMUX_),
|
|
||||||
ID($_AOI3_), ID($_OAI3_), ID($_AOI4_), ID($_OAI4_)})
|
|
||||||
c.set_id(id);
|
c.set_id(id);
|
||||||
// compare
|
for (auto id : {CMP_OPS})
|
||||||
for (auto id : {ID($eq), ID($ne), ID($lt), ID($le), ID($ge), ID($gt)})
|
|
||||||
c.set_id(id);
|
c.set_id(id);
|
||||||
// other
|
|
||||||
for (auto id : {ID($pos), ID($pmux), ID($bmux)})
|
for (auto id : {ID($pos), ID($pmux), ID($bmux)})
|
||||||
c.set_id(id);
|
c.set_id(id);
|
||||||
return c;
|
return c;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue