aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-04-16 21:49:49 +0000
committerwhitequark <whitequark@whitequark.org>2020-04-16 21:49:49 +0000
commitb6f624b56bc3adee55743c4bd383414ea5b07c72 (patch)
tree00c2ec84b25dc8d86c9b6b28fa425f2abda50ac1 /kernel/rtlil.h
parentff7a1a1568e0d4773b160b631da0446673149091 (diff)
downloadyosys-b6f624b56bc3adee55743c4bd383414ea5b07c72.tar.gz
yosys-b6f624b56bc3adee55743c4bd383414ea5b07c72.tar.bz2
yosys-b6f624b56bc3adee55743c4bd383414ea5b07c72.zip
rtlil: add AttrObject::has_attribute.
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index fe9e21c31..f3b1c9ae7 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -656,6 +656,8 @@ struct RTLIL::AttrObject
{
dict<RTLIL::IdString, RTLIL::Const> attributes;
+ bool has_attribute(RTLIL::IdString id) const;
+
void set_bool_attribute(RTLIL::IdString id, bool value=true);
bool get_bool_attribute(RTLIL::IdString id) const;