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