def asHdl(cls, obj, ctx: SerializerCtx):
        """
        Convert object to HDL string

        :param obj: object to serialize
        :param ctx: SerializerCtx instance
        """
        if isinstance(obj, RtlSignalBase):
            return cls.SignalItem(obj, ctx)
        elif isinstance(obj, Value):
            return cls.Value(obj, ctx)
        else:
            try:
                serFn = getattr(cls, obj.__class__.__name__)
            except AttributeError:
                raise SerializerException("Not implemented for", obj)
            return serFn(obj, ctx)
def asHdl(cls, obj, ctx: SerializerCtx):
        """
        Convert object to HDL string

        :param obj: object to serialize
        :param ctx: SerializerCtx instance
        """
        if isinstance(obj, RtlSignalBase):
            return cls.SignalItem(obj, ctx)
        elif isinstance(obj, Value):
            return cls.Value(obj, ctx)
        else:
            try:
                serFn = getattr(cls, obj.__class__.__name__)
            except AttributeError:
                raise SerializerException("Not implemented for", obj)
            return serFn(obj, ctx)
def asHdl ( cls , obj , ctx : SerializerCtx ) : if isinstance ( obj , RtlSignalBase ) : return cls . SignalItem ( obj , ctx ) elif isinstance ( obj , Value ) : return cls . Value ( obj , ctx ) else : try : serFn = getattr ( cls , obj . __class__ . __name__ ) except AttributeError : raise SerializerException ( "Not implemented for" , obj ) return serFn ( obj , ctx )
Convert object to HDL string

        :param obj: object to serialize
        :param ctx: SerializerCtx instance
Convert object to HDL string