mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added "write_smv" skeleton
This commit is contained in:
parent
93685a77c6
commit
ea23bb8aa4
3 changed files with 265 additions and 2 deletions
|
@ -147,8 +147,10 @@ struct shared_str {
|
|||
shared_str() { }
|
||||
shared_str(string s) { content = std::shared_ptr<string>(new string(s)); }
|
||||
shared_str(const char *s) { content = std::shared_ptr<string>(new string(s)); }
|
||||
const char *c_str() { return content->c_str(); }
|
||||
const string &str() { return *content; }
|
||||
const char *c_str() const { return content->c_str(); }
|
||||
const string &str() const { return *content; }
|
||||
bool operator==(const shared_str &other) const { return *content == *other.content; }
|
||||
unsigned int hash() const { return hashlib::hash_ops<std::string>::hash(*content); }
|
||||
};
|
||||
|
||||
using hashlib::mkhash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue