3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-17 04:35:44 +00:00

Add muxmode pass and tests

This commit is contained in:
Akash Levy 2025-03-30 17:54:18 -07:00
parent dacd882383
commit 161ff0fa3f
7 changed files with 653 additions and 2 deletions

View file

@ -290,8 +290,8 @@ inline std::string removeNumericSuffix(const std::string& str) {
return str; // Return unchanged if no numeric suffix found
}
#define NEW_ID2 module->uniquify(removeNumericSuffix(cell->name.str()))
#define NEW_ID2_SUFFIX(suffix) module->uniquify(cell->name.str() + "_" + suffix)
#define NEW_ID2 cell->module->uniquify(removeNumericSuffix(cell->name.str()))
#define NEW_ID2_SUFFIX(suffix) cell->module->uniquify(cell->name.str() + "_" + suffix)
#define NEW_ID3 module->uniquify(cell_name.str())
#define NEW_ID3_SUFFIX(suffix) module->uniquify(cell_name.str() + "_" + suffix)
#define NEW_ID4 module->uniquify(name.str())