From 6061b7bd58c2f528f33d1f3859f99a5d0babca21 Mon Sep 17 00:00:00 2001
From: Clifford Wolf <clifford@clifford.at>
Date: Mon, 18 May 2015 11:15:49 +0200
Subject: bugfix in blif front-end

---
 frontends/blif/blifparse.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'frontends/blif/blifparse.cc')

diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc
index 4b4ac6098..580fb8647 100644
--- a/frontends/blif/blifparse.cc
+++ b/frontends/blif/blifparse.cc
@@ -207,10 +207,10 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name)
 				RTLIL::SigSpec input_sig, output_sig;
 				while ((p = strtok(NULL, " \t\r\n")) != NULL) {
 					RTLIL::Wire *wire;
-					if (module->wires_.count(stringf("\\%s", p)) > 0) {
-						wire = module->wires_.at(stringf("\\%s", p));
+					if (module->wires_.count(RTLIL::escape_id(p)) > 0) {
+						wire = module->wires_.at(RTLIL::escape_id(p));
 					} else {
-						wire = module->addWire(stringf("\\%s", p));
+						wire = module->addWire(RTLIL::escape_id(p));
 					}
 					input_sig.append(wire);
 				}
-- 
cgit v1.2.3