mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
hashlib: redo interface for flexibility
This commit is contained in:
parent
7a362f1f74
commit
d071489ab1
35 changed files with 542 additions and 386 deletions
|
@ -90,7 +90,7 @@ struct ScopeinfoExamplePass : public Pass {
|
|||
|
||||
// Shuffle wires so this example produces more interesting outputs
|
||||
std::sort(wires.begin(), wires.end(), [](Wire *a, Wire *b) {
|
||||
return mkhash_xorshift(a->name.hash() * 0x2c9277b5) < mkhash_xorshift(b->name.hash() * 0x2c9277b5);
|
||||
return mkhash_xorshift(run_hash(a->name) * 0x2c9277b5) < mkhash_xorshift(run_hash(b->name) * 0x2c9277b5);
|
||||
});
|
||||
|
||||
ModuleHdlnameIndex index(module);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue