3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

Added "json -aig"

This commit is contained in:
Clifford Wolf 2015-06-10 08:13:56 +02:00
parent 56d4822719
commit e534881794
3 changed files with 76 additions and 9 deletions

View file

@ -41,6 +41,16 @@ unsigned int AigNode::hash() const
return h;
}
bool Aig::operator==(const Aig &other) const
{
return name == other.name;
}
unsigned int Aig::hash() const
{
return hash_ops<std::string>::hash(name);
}
struct AigMaker
{
Aig *aig;

View file

@ -41,6 +41,9 @@ struct Aig
string name;
vector<AigNode> nodes;
Aig(Cell *cell);
bool operator==(const Aig &other) const;
unsigned int hash() const;
};
YOSYS_NAMESPACE_END