diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-09-29 12:51:54 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-09-29 12:51:54 +0200 |
commit | 0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd (patch) | |
tree | 8915aeb7d1af113469fc4e1f101d3dd157f6ba57 /kernel | |
parent | f9a307a50b5ce67b67d2b53e8c1334ea23ffd997 (diff) | |
download | yosys-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.h | 5 |
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); }; |