mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Added "json -aig"
This commit is contained in:
parent
56d4822719
commit
e534881794
3 changed files with 76 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue