mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
select: New type props
This commit is contained in:
parent
647ea922f1
commit
425c7fe4cf
1 changed files with 9 additions and 0 deletions
|
@ -147,6 +147,9 @@ static bool match_type_prop(RTLIL::IdString type, const std::string &property)
|
||||||
if (ct == nullptr) {
|
if (ct == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
} else
|
} else
|
||||||
|
if (property.compare("internal") == 0) {
|
||||||
|
return ct->is_internal;
|
||||||
|
} else
|
||||||
if (property.compare("evaluable") == 0) {
|
if (property.compare("evaluable") == 0) {
|
||||||
return ct->is_evaluable;
|
return ct->is_evaluable;
|
||||||
} else
|
} else
|
||||||
|
@ -161,6 +164,12 @@ static bool match_type_prop(RTLIL::IdString type, const std::string &property)
|
||||||
} else
|
} else
|
||||||
if (property.compare("formal") == 0) {
|
if (property.compare("formal") == 0) {
|
||||||
return ct->is_formal;
|
return ct->is_formal;
|
||||||
|
} else
|
||||||
|
if (property.compare("metainfo") == 0) {
|
||||||
|
return ct->is_metainfo;
|
||||||
|
} else
|
||||||
|
if (property.compare("effects") == 0) {
|
||||||
|
return ct->has_effects;
|
||||||
} else
|
} else
|
||||||
log_cmd_error("Unsupported type property '%s'!\n", property.c_str());
|
log_cmd_error("Unsupported type property '%s'!\n", property.c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue