diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-04-18 10:19:45 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-04-18 10:19:45 -0700 |
commit | c997a77014b5d8dbfb24e77bb8157454619ea366 (patch) | |
tree | 7e5659d57fa324217608fb2bbe9f6751785ab55e /kernel | |
parent | 9278192efe5ae6382f4e011abaf417b45a6abfef (diff) | |
download | yosys-c997a77014b5d8dbfb24e77bb8157454619ea366.tar.gz yosys-c997a77014b5d8dbfb24e77bb8157454619ea366.tar.bz2 yosys-c997a77014b5d8dbfb24e77bb8157454619ea366.zip |
Ignore 'whitebox' attr in flatten with "-wb" option
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.h | 4 |
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); |