! @brief Common CoreSightComponent factory.

def factory(cls, ap, cmpid, address):
        """! @brief Common CoreSightComponent factory."""
        cmp = cls(ap, cmpid, address)
        if ap.core:
            ap.core.add_child(cmp)
        return cmp