3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-10 05:00:52 +00:00

Merge pull request #1098 from YosysHQ/xaig

"abc9" pass for timing-aware techmapping (experimental, FPGA only, no FFs)
This commit is contained in:
Eddie Hung 2019-06-28 10:59:03 -07:00 committed by GitHub
commit da5f830395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 3637 additions and 242 deletions

View file

@ -276,6 +276,18 @@ namespace RTLIL
return std::string(c_str() + pos, len);
}
bool begins_with(const char* prefix) const {
size_t len = strlen(prefix);
if (size() < len) return false;
return substr(0, len) == prefix;
}
bool ends_with(const char* suffix) const {
size_t len = strlen(suffix);
if (size() < len) return false;
return substr(size()-len) == suffix;
}
size_t size() const {
return str().size();
}