From 0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 29 Sep 2014 12:51:54 +0200 Subject: Added support for "keep" on modules --- kernel/rtlil.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel') 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 void rewrite_sigspecs(T functor); }; -- cgit v1.2.3