aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-04-18 09:00:06 -0700
committerEddie Hung <eddie@fpgeh.com>2019-04-18 09:00:06 -0700
commit8fe0a961b306ef0c9c5de912833c6d92aed5f363 (patch)
tree10325fb4b9a5d9a481177f0360fdbb8026e66367 /kernel/rtlil.h
parenta20ed260e1b12da64bc4b40682c53145f6ffe827 (diff)
parentf4abc21d8ad79621cc24852bd76abf40a9d9f702 (diff)
downloadyosys-8fe0a961b306ef0c9c5de912833c6d92aed5f363.tar.gz
yosys-8fe0a961b306ef0c9c5de912833c6d92aed5f363.tar.bz2
yosys-8fe0a961b306ef0c9c5de912833c6d92aed5f363.zip
Merge remote-tracking branch 'origin/clifford/whitebox' into xaig
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index ef6eb9f83..c11c020c1 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -575,6 +575,10 @@ struct RTLIL::AttrObject
void set_bool_attribute(RTLIL::IdString id);
bool get_bool_attribute(RTLIL::IdString id) const;
+ bool get_blackbox_attribute() const {
+ return get_bool_attribute("\\blackbox") || get_bool_attribute("\\whitebox");
+ }
+
void set_strpool_attribute(RTLIL::IdString id, const pool<string> &data);
void add_strpool_attribute(RTLIL::IdString id, const pool<string> &data);
pool<string> get_strpool_attribute(RTLIL::IdString id) const;