mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
newcelltypes: twines
This commit is contained in:
parent
44ce4c2356
commit
25f27026f0
1 changed files with 4 additions and 2 deletions
|
|
@ -455,8 +455,10 @@ struct Categories {
|
|||
constexpr bool operator[](size_t idx) {
|
||||
return data[idx];
|
||||
}
|
||||
constexpr void set_id(IdString type, bool val = true) {
|
||||
size_t idx = type.index_;
|
||||
// Indexed by TwineRef value, matching operator() and the Categories
|
||||
// constructor.
|
||||
constexpr void set_id(TwineRef type, bool val = true) {
|
||||
size_t idx = type;
|
||||
if (idx >= MAX_CELLS)
|
||||
return; // TODO should be an assert but then it's not constexpr
|
||||
data[idx] = val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue