Set blackbox attribute in "read_liberty -lib"
authorClifford Wolf <clifford@clifford.at>
Wed, 16 Jul 2014 16:12:16 +0000 (18:12 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 16 Jul 2014 16:12:16 +0000 (18:12 +0200)
frontends/liberty/liberty.cc

index 7a74c5fcb46f64899545306b3ef55d1c0afb5b90..398e7a30ef41bfaab2fbf125cdc690db7a105441 100644 (file)
@@ -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;