aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-04-20 17:24:06 -0700
committerEddie Hung <eddie@fpgeh.com>2019-04-20 17:24:06 -0700
commit9dc11cd842952deca8e826b662f4565e2b52bd1d (patch)
tree6caa919ebcb4618581d8dce4a43f98dbe585bda8 /kernel/rtlil.h
parentb25254020c7edc9e4d3fb2a24be5f029a09a1ee0 (diff)
parentf84a84e3f1a27b361c21fcd30fcf50c1a6586629 (diff)
downloadyosys-9dc11cd842952deca8e826b662f4565e2b52bd1d.tar.gz
yosys-9dc11cd842952deca8e826b662f4565e2b52bd1d.tar.bz2
yosys-9dc11cd842952deca8e826b662f4565e2b52bd1d.zip
Merge remote-tracking branch 'origin/master' into xc7srl
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index fb045bc72..330a81c3b 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -566,9 +566,13 @@ struct RTLIL::AttrObject
{
dict<RTLIL::IdString, RTLIL::Const> attributes;
- void set_bool_attribute(RTLIL::IdString id);
+ void set_bool_attribute(RTLIL::IdString id, bool value=true);
bool get_bool_attribute(RTLIL::IdString id) const;
+ bool get_blackbox_attribute(bool ignore_wb=false) const {
+ return get_bool_attribute("\\blackbox") || (!ignore_wb && 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;