aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-04-18 10:19:45 -0700
committerEddie Hung <eddie@fpgeh.com>2019-04-18 10:19:45 -0700
commitc997a77014b5d8dbfb24e77bb8157454619ea366 (patch)
tree7e5659d57fa324217608fb2bbe9f6751785ab55e /kernel/rtlil.h
parent9278192efe5ae6382f4e011abaf417b45a6abfef (diff)
downloadyosys-c997a77014b5d8dbfb24e77bb8157454619ea366.tar.gz
yosys-c997a77014b5d8dbfb24e77bb8157454619ea366.tar.bz2
yosys-c997a77014b5d8dbfb24e77bb8157454619ea366.zip
Ignore 'whitebox' attr in flatten with "-wb" option
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index c11c020c1..db0a8f762 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -575,8 +575,8 @@ 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");
+ 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);