Escape '<' and '>' some more
authoreddiehung <e.hung@imperial.ac.uk>
Sun, 3 May 2015 09:37:20 +0000 (10:37 +0100)
committereddiehung <e.hung@imperial.ac.uk>
Sun, 3 May 2015 09:37:20 +0000 (10:37 +0100)
backends/blif/blif.cc

index 4a5121977424dfc1b2dafcf5dbdb19afc9a8a07a..3a4618a901cfac28f033dfebb352f814f5349d10 100644 (file)
@@ -82,7 +82,7 @@ struct BlifDumper
 
                std::string str = RTLIL::unescape_id(sig.wire->name);
                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] = '?';
 
                if (sig.wire->width != 1)