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

Add RTLIL::constpad, init by yosys_setup(); use for abc9

This commit is contained in:
Eddie Hung 2020-01-07 12:52:03 -08:00
parent 823a08e0d8
commit a63e2508fc
5 changed files with 39 additions and 32 deletions

View file

@ -377,6 +377,8 @@ namespace RTLIL
extern IdString blackbox;
};
extern dict<std::string, std::string> constpad;
static inline std::string escape_id(std::string str) {
if (str.size() > 0 && str[0] != '\\' && str[0] != '$')
return "\\" + str;