aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-07 12:52:03 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-08 10:52:08 -0800
commita63e2508fcca395e795029d5c57c59acc63a9959 (patch)
treec28d4800477a6fba3adb45f15ec2ae2168ffef56 /kernel/rtlil.h
parent823a08e0d8272e8d48584eecc2d8dc57bdb98a6e (diff)
downloadyosys-a63e2508fcca395e795029d5c57c59acc63a9959.tar.gz
yosys-a63e2508fcca395e795029d5c57c59acc63a9959.tar.bz2
yosys-a63e2508fcca395e795029d5c57c59acc63a9959.zip
Add RTLIL::constpad, init by yosys_setup(); use for abc9
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index e5b24cc02..6251d265d 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -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;