summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-16 18:12:16 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-16 18:12:16 +0200
commit5057935722edca26b13cb3a158a443d16a6445da (patch)
tree81636b289347daaa21184923ffa94902e5bcfb96 /frontends
parent24f58e57f3048f7f3e84115364b392389d124c7a (diff)
Set blackbox attribute in "read_liberty -lib"
Diffstat (limited to 'frontends')
-rw-r--r--frontends/liberty/liberty.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc
index 7a74c5fc..398e7a30 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;