def __init__(self, origin, wordWidth, startBitAddr, endBitAddr,<EOL>transParts):
self.origin = origin<EOL>self.wordWidth = wordWidth<EOL>assert startBitAddr <= endBitAddr<EOL>self.startBitAddr = startBitAddr<EOL>self.endBitAddr = endBitAddr<EOL>self.parts = transParts<EOL>self._fieldToTPart = None<EOL>for p in self.parts:<EOL><INDENT>p.parent = self<EOL>assert p.startOfPart >= startBitAddr, (p, startBitAddr)<EOL>assert p.endOfPart <= endBitAddr, (p, endBitAddr)<EOL><DEDENT>
:param origin: instance of HType (usually HStruct)
    from which this FrameTmpl was generated from
:param wordWidth: width of word on interface
    where this template should be used
:param startBitAddr: bit offset where this frame starts
:param endBitAddr: bit offset where this frame ends
    (bit index of first bit behind this frame)
:param transParts: instances of TransPart which are parts of this frame