mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
rtlil: add AttrObject::has_attribute.
This commit is contained in:
parent
ff7a1a1568
commit
b6f624b56b
2 changed files with 7 additions and 0 deletions
|
@ -273,6 +273,11 @@ bool RTLIL::Const::is_fully_undef() const
|
|||
return true;
|
||||
}
|
||||
|
||||
bool RTLIL::AttrObject::has_attribute(RTLIL::IdString id) const
|
||||
{
|
||||
return attributes.count(id);
|
||||
}
|
||||
|
||||
void RTLIL::AttrObject::set_bool_attribute(RTLIL::IdString id, bool value)
|
||||
{
|
||||
if (value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue