diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-01 19:01:10 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-01 19:01:10 +0200 |
commit | bd74ed7da467de11128c57c4c424febe4a7e2f39 (patch) | |
tree | 8c6f55776de2d385193c12a2cacfa2733be0b09d /passes/techmap | |
parent | 1e224506be6d824ea9ed1855fa46d039e5ffefd5 (diff) | |
download | yosys-bd74ed7da467de11128c57c4c424febe4a7e2f39.tar.gz yosys-bd74ed7da467de11128c57c4c424febe4a7e2f39.tar.bz2 yosys-bd74ed7da467de11128c57c4c424febe4a7e2f39.zip |
Replaced sha1 implementation
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/techmap.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index c2e5960ff..1f812e52f 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -99,12 +99,7 @@ struct TechmapWorker connbits_map[bit] = std::pair<std::string, int>(conn.first, i);stringf("%s %d", log_id(conn.first), i, bit.data); } - unsigned char hash[20]; - char hash_hex_string[41]; - sha1::calc(constmap_info.c_str(), constmap_info.size(), hash); - sha1::toHexString(hash, hash_hex_string); - - return stringf("$paramod$constmap$%s%s", hash_hex_string, tpl->name.c_str()); + return stringf("$paramod$constmap:%s%s", sha1(constmap_info).c_str(), tpl->name.c_str()); } TechmapWires techmap_find_special_wires(RTLIL::Module *module) |