From 5057935722edca26b13cb3a158a443d16a6445da Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 16 Jul 2014 18:12:16 +0200 Subject: [PATCH] Set blackbox attribute in "read_liberty -lib" --- frontends/liberty/liberty.cc | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2