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:32:00 -0700 | 
| commit | 290a798cec4dae02886877a342b00c1ba7d5b22d (patch) | |
| tree | 525e34213945bca19fde1e75321e7a2f46d10ad0 /kernel/rtlil.h | |
| parent | f4abc21d8ad79621cc24852bd76abf40a9d9f702 (diff) | |
| download | yosys-290a798cec4dae02886877a342b00c1ba7d5b22d.tar.gz yosys-290a798cec4dae02886877a342b00c1ba7d5b22d.tar.bz2 yosys-290a798cec4dae02886877a342b00c1ba7d5b22d.zip | |
Ignore 'whitebox' attr in flatten with "-wb" option
Diffstat (limited to 'kernel/rtlil.h')
| -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 176dc3fc2..9e396d6f6 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -569,8 +569,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); | 
