3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Added mkhash_xorshift()

This commit is contained in:
Clifford Wolf 2014-12-29 00:12:36 +01:00
parent dede5353b1
commit a2226e5307
4 changed files with 38 additions and 13 deletions

View file

@ -712,8 +712,9 @@ struct RTLIL::Monitor
unsigned int hash() const { return hashidx_; }
Monitor() {
static unsigned int hashidx_count = 0;
hashidx_ = hashidx_count++;
static unsigned int hashidx_count = 123456789;
hashidx_count = mkhash_xorshift(hashidx_count);
hashidx_ = hashidx_count;
}
virtual ~Monitor() { }