For vtr, escape angle brackets as well
authoreddiehung <e.hung@imperial.ac.uk>
Tue, 28 Apr 2015 07:56:00 +0000 (08:56 +0100)
committereddiehung <e.hung@imperial.ac.uk>
Tue, 28 Apr 2015 07:56:00 +0000 (08:56 +0100)
backends/blif/blif.cc

index bbc0614e4fd0f70286807e9f43675102a0b1ca2a..4a5121977424dfc1b2dafcf5dbdb19afc9a8a07a 100644 (file)
@@ -66,7 +66,7 @@ struct BlifDumper
        {
                std::string str = RTLIL::unescape_id(id);
                for (size_t i = 0; i < str.size(); i++)
-                       if (str[i] == '#' || str[i] == '=')
+                       if (str[i] == '#' || str[i] == '=' || str[i] == '<' || str[i] == '>')
                                str[i] = '?';
                cstr_buf.push_back(str);
                return cstr_buf.back().c_str();