aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-13 09:04:20 -0800
committerGitHub <noreply@github.com>2020-01-13 09:04:20 -0800
commitca2f3db53f3f330d283079bf44b3cef6b7f197be (patch)
treeb633788b56a0575be8f70644641c352adb1a653e /kernel
parent0f489c5ea340869206888c6f1feb672b7202b185 (diff)
parent35e49fde4dfa67030a3e80d0bdf700c97258ed45 (diff)
downloadyosys-ca2f3db53f3f330d283079bf44b3cef6b7f197be.tar.gz
yosys-ca2f3db53f3f330d283079bf44b3cef6b7f197be.tar.bz2
yosys-ca2f3db53f3f330d283079bf44b3cef6b7f197be.zip
Merge pull request #1620 from YosysHQ/eddie/abc9_scratchpad
abc9: add some scripts/options into "scratchpad"
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc1
-rw-r--r--kernel/rtlil.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index ab4f4f377..f286d139f 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -46,6 +46,7 @@ IdString RTLIL::ID::Y;
IdString RTLIL::ID::keep;
IdString RTLIL::ID::whitebox;
IdString RTLIL::ID::blackbox;
+dict<std::string, std::string> RTLIL::constpad;
RTLIL::Const::Const()
{
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;