Set blackbox attribute in "read_liberty -lib"

This commit is contained in:
Clifford Wolf 2014-07-16 18:12:16 +02:00
parent 24f58e57f3
commit 5057935722
1 changed files with 3 additions and 0 deletions

View 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;