aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-29 12:51:54 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-29 12:51:54 +0200
commit0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd (patch)
tree8915aeb7d1af113469fc4e1f101d3dd157f6ba57 /kernel
parentf9a307a50b5ce67b67d2b53e8c1334ea23ffd997 (diff)
downloadyosys-0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd.tar.gz
yosys-0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd.tar.bz2
yosys-0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd.zip
Added support for "keep" on modules
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index a0ae8f082..8df0bfe19 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -857,6 +857,11 @@ public:
void check();
void fixup_parameters(bool set_a_signed = false, bool set_b_signed = false);
+ bool has_keep_attr() const {
+ return get_bool_attribute("\\keep") || (module && module->design && module->design->module(type) &&
+ module->design->module(type)->get_bool_attribute("\\keep"));
+ }
+
template<typename T> void rewrite_sigspecs(T functor);
};