aboutsummaryrefslogtreecommitdiffstats
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
parent24f58e57f3048f7f3e84115364b392389d124c7a (diff)
downloadyosys-5057935722edca26b13cb3a158a443d16a6445da.tar.gz
yosys-5057935722edca26b13cb3a158a443d16a6445da.tar.bz2
yosys-5057935722edca26b13cb3a158a443d16a6445da.zip
Set blackbox attribute in "read_liberty -lib"
-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 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;