aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/blif/blifparse.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-10-18 10:53:56 +0200
committerGitHub <noreply@github.com>2019-10-18 10:53:56 +0200
commit66fca65b58bfb944cad45da5836613726498e4b7 (patch)
treea78b5d92952ea9f95623bb3daf8028d2402d023b /frontends/blif/blifparse.cc
parent46af9a0ff7727c2d47b1dc12501e3328cba1f2e9 (diff)
parent5ffb0053ec7d53ffc5c57e3277bfbab5d3fddb54 (diff)
downloadyosys-66fca65b58bfb944cad45da5836613726498e4b7.tar.gz
yosys-66fca65b58bfb944cad45da5836613726498e4b7.tar.bz2
yosys-66fca65b58bfb944cad45da5836613726498e4b7.zip
Merge branch 'master' into mmicko/anlogic
Diffstat (limited to 'frontends/blif/blifparse.cc')
-rw-r--r--frontends/blif/blifparse.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc
index d17cacf29..cab210605 100644
--- a/frontends/blif/blifparse.cc
+++ b/frontends/blif/blifparse.cc
@@ -174,6 +174,12 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
if (module == nullptr)
goto error;
+ if (!strcmp(cmd, ".blackbox"))
+ {
+ module->attributes["\\blackbox"] = RTLIL::Const(1);
+ continue;
+ }
+
if (!strcmp(cmd, ".end"))
{
for (auto &wp : wideports_cache)
@@ -280,7 +286,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
goto error_with_reason;
}
- module->rename(lastcell, p);
+ module->rename(lastcell, RTLIL::escape_id(p));
continue;
}