From: Clifford Wolf Date: Tue, 15 Oct 2019 22:00:27 +0000 (+0200) Subject: Add .blackbox support to blif front-end X-Git-Tag: working-ls180~994 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=935d3e19e2ddc315d06b4a7fe649f06578eeeb81;p=yosys.git Add .blackbox support to blif front-end Signed-off-by: Clifford Wolf --- diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc index d17cacf29..bfcfad78a 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)