hwt/hdl/transTmpl.py
def _loadFromUnion(self, dtype: HdlType, bitAddr: int) -> int:
        """
        Parse HUnion type to this transaction template instance

        :return: address of it's end
        """
        for field in dtype.fields.values():
            ch = TransTmpl(field.dtype, 0, parent=self, origin=field)
            self.children.append(ch)
        return bitAddr + dtype.bit_length()
def _loadFromUnion(self, dtype: HdlType, bitAddr: int) -> int:
        """
        Parse HUnion type to this transaction template instance

        :return: address of it's end
        """
        for field in dtype.fields.values():
            ch = TransTmpl(field.dtype, 0, parent=self, origin=field)
            self.children.append(ch)
        return bitAddr + dtype.bit_length()
def _loadFromUnion ( self , dtype : HdlType , bitAddr : int ) -> int : for field in dtype . fields . values ( ) : ch = TransTmpl ( field . dtype , 0 , parent = self , origin = field ) self . children . append ( ch ) return bitAddr + dtype . bit_length ( )
Parse HUnion type to this transaction template instance

        :return: address of it's end
Parse HUnion type to this transaction template instance