aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-05-02 10:44:59 -0700
committerEddie Hung <eddie@fpgeh.com>2019-05-02 10:44:59 -0700
commit5cd19b52da297cc7d44e9bf11dc9d1664a02ccce (patch)
tree6206a4fa059c47a56cc43914d4141a386a5f2c7f /kernel/yosys.cc
parent4aca928033874e8e35ecc4a18f22475c00bebad9 (diff)
parent98925f6c4be611434e75f0ccf645a7ef8adcfc63 (diff)
downloadyosys-5cd19b52da297cc7d44e9bf11dc9d1664a02ccce.tar.gz
yosys-5cd19b52da297cc7d44e9bf11dc9d1664a02ccce.tar.bz2
yosys-5cd19b52da297cc7d44e9bf11dc9d1664a02ccce.zip
Merge remote-tracking branch 'origin/master' into xc7mux
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index a12355f1d..20d972150 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -482,6 +482,20 @@ void remove_directory(std::string dirname)
#endif
}
+std::string escape_filename_spaces(const std::string& filename)
+{
+ std::string out;
+ out.reserve(filename.size());
+ for (auto c : filename)
+ {
+ if (c == ' ')
+ out += "\\ ";
+ else
+ out.push_back(c);
+ }
+ return out;
+}
+
int GetSize(RTLIL::Wire *wire)
{
return wire->width;