diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2019-10-18 10:52:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 10:52:50 +0200 |
commit | 0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc (patch) | |
tree | 24f6a3cd2c4fa19a41d90cd57b0908b668efeb21 /frontends/blif/blifparse.cc | |
parent | 0d60902fd97bba4f231f8f600434b8a69562ffff (diff) | |
parent | e0a67fce12647b4db7125d33264847c0a3781105 (diff) | |
download | yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.tar.gz yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.tar.bz2 yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.zip |
Merge branch 'master' into eddie/pr1352
Diffstat (limited to 'frontends/blif/blifparse.cc')
-rw-r--r-- | frontends/blif/blifparse.cc | 8 |
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; } |