3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 04:03:45 +00:00

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

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;