From: Clifford Wolf Date: Wed, 16 Jul 2014 16:12:16 +0000 (+0200) Subject: Set blackbox attribute in "read_liberty -lib" X-Git-Tag: yosys-0.4~564 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5057935722edca26b13cb3a158a443d16a6445da;p=yosys.git Set blackbox attribute in "read_liberty -lib" --- diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc index 7a74c5fcb..398e7a30e 100644 --- a/frontends/liberty/liberty.cc +++ b/frontends/liberty/liberty.cc @@ -528,6 +528,9 @@ struct LibertyFrontend : public Frontend { RTLIL::Module *module = new RTLIL::Module; module->name = cell_name; + if (flag_lib) + module->set_bool_attribute("\\blackbox"); + for (auto &attr : attributes) module->attributes[attr] = 1;