Lines Matching refs:bitset
42 def __init__(self, bitset): argument
43 self.match = bitset.match
44 self.dontcare = bitset.dontcare
45 self.mask = bitset.mask
46 self.field_mask = bitset.field_mask;
142 self.isa = case.bitset.isa
144 self.name = case.bitset.name + '#assert' + str(len(case.fields))
149 match, dontcare, mask = extract_pattern(xml, case.bitset.name)
183 def __init__(self, bitset, xml, update_field_mask, expr=None): argument
184 self.bitset = bitset
186 self.name = bitset.name + '#case' + str(len(bitset.cases))
188 self.name = bitset.name + "#default"
193 f = BitSetDerivedField(bitset.isa, derived)
203 f = BitSetField(bitset.isa, field)
463 for bitset in root.findall('bitset'):
464 b = BitSet(self, bitset)
478 for bitset in bitsets:
479 if bitset.extends in self.leafs:
480 del self.leafs[bitset.extends]
492 for bitset_name, bitset in self.bitsets.items():
493 if bitset.extends is not None:
494 assert bitset.extends in self.bitsets, "{} extends invalid type: {}".format(
495 bitset_name, bitset.extends)
496 for case in bitset.cases:
502 assert field.high < bitset.get_size(), \
504 … bitset_name, field_name, field.low, field.high, 0, bitset.get_size() - 1)
519 for bitset in bitsets:
520 pat = bitset.get_pattern()
521 sz = bitset.get_size()
523 bitset.name, ~(pat.mask | pat.field_mask) & ((1 << sz) - 1))
572 for name, bitset in self.bitsets.items():
573 yield name, bitset
577 for bitset in bitsets:
578 yield name, bitset