Exemple #1
0
def extract_primitive_records(obj):
    ret = []
    ts = hdl.extract_conversion_types(obj)
    for t in ts:
        name = hdl.get_type_simple(obj)
        suffix = t["suffix"]
        record_obj = impl_constructor("v_data_record")(
            name + suffix, t["symbol"]._varSigConst)
        record_obj._Inout = t["symbol"]._Inout if len(
            ts) > 1 else InOut_t.Default_t
        members = t["symbol"].getMember()
        record_obj.__v_classType__ = t["symbol"].__v_classType__

        record_obj.__abstract_type_info__.vetoHDLConversion = True
        for x in members:
            if x["symbol"].__isFreeType__:
                continue
            setattr(record_obj, x["name"], x["symbol"])

        ret.append(extracted_record_t(record_obj, t["suffix"]))

    return ret
def is_argg_hdl_obj(obj):
    return impl_constructor("is_argg_hdl_obj")(obj)
def is_variable(obj):
    return impl_constructor("is_variable")(obj)
def is_symbol(obj):
    return impl_constructor("is_symbol")(obj)
def set_v_classType(obj, parant_obj):
    return impl_constructor("set_v_classType")(obj, parant_obj)
def is_trans_class(obj):
    return impl_constructor("is_trans_class")(obj)
def is_handle_class(obj):
    return impl_constructor("is_handle_class")(obj)
def is_signal(obj):
    return impl_constructor("is_signal")(obj)