File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,7 @@ struct RTLIL::AttrObject
814814 void set_bool_attribute (const RTLIL::IdString &id, bool value=true );
815815 bool get_bool_attribute (const RTLIL::IdString &id) const ;
816816
817+ [[deprecated(" Use Module::get_blackbox_attribute() instead." )]]
817818 bool get_blackbox_attribute (bool ignore_wb=false ) const {
818819 return get_bool_attribute (ID::blackbox) || (!ignore_wb && get_bool_attribute (ID::whitebox));
819820 }
@@ -1291,6 +1292,10 @@ struct RTLIL::Module : public RTLIL::AttrObject
12911292 virtual void optimize ();
12921293 virtual void makeblackbox ();
12931294
1295+ bool get_blackbox_attribute (bool ignore_wb=false ) const {
1296+ return get_bool_attribute (ID::blackbox) || (!ignore_wb && get_bool_attribute (ID::whitebox));
1297+ }
1298+
12941299 void connect (const RTLIL::SigSig &conn);
12951300 void connect (const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs);
12961301 void new_connections (const std::vector<RTLIL::SigSig> &new_conn);
You can’t perform that action at this time.
0 commit comments