<filename>build/X86_MESI_Two_Level/python/m5/internal/param_RubyCache.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_param_RubyCache')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_param_RubyCache')
    _param_RubyCache = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_param_RubyCache', [dirname(__file__)])
        except ImportError:
            import _param_RubyCache
            return _param_RubyCache
        try:
            _mod = imp.load_module('_param_RubyCache', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _param_RubyCache = swig_import_helper()
    del swig_import_helper
else:
    import _param_RubyCache
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


import m5.internal.param_ReplacementPolicy
import m5.internal.param_SimObject
import m5.internal.drain
import m5.internal.serialize
import m5.internal.param_RubySystem
import m5.internal.param_SimpleMemory
import m5.internal.param_AbstractMemory
import m5.internal.param_MemObject
import m5.internal.param_ClockedObject
import m5.internal.param_ClockDomain
class CacheMemory(m5.internal.param_SimObject.SimObject):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
CacheMemory_swigregister = _param_RubyCache.CacheMemory_swigregister
CacheMemory_swigregister(CacheMemory)

class RubyCacheParams(m5.internal.param_SimObject.SimObjectParams):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def create(self):
        return _param_RubyCache.RubyCacheParams_create(self)
    assoc = _swig_property(_param_RubyCache.RubyCacheParams_assoc_get, _param_RubyCache.RubyCacheParams_assoc_set)
    block_size = _swig_property(_param_RubyCache.RubyCacheParams_block_size_get, _param_RubyCache.RubyCacheParams_block_size_set)
    cache_level = _swig_property(_param_RubyCache.RubyCacheParams_cache_level_get, _param_RubyCache.RubyCacheParams_cache_level_set)
    dataAccessLatency = _swig_property(_param_RubyCache.RubyCacheParams_dataAccessLatency_get, _param_RubyCache.RubyCacheParams_dataAccessLatency_set)
    dataArrayBanks = _swig_property(_param_RubyCache.RubyCacheParams_dataArrayBanks_get, _param_RubyCache.RubyCacheParams_dataArrayBanks_set)
    is_icache = _swig_property(_param_RubyCache.RubyCacheParams_is_icache_get, _param_RubyCache.RubyCacheParams_is_icache_set)
    np = _swig_property(_param_RubyCache.RubyCacheParams_np_get, _param_RubyCache.RubyCacheParams_np_set)
    replacement_policy = _swig_property(_param_RubyCache.RubyCacheParams_replacement_policy_get, _param_RubyCache.RubyCacheParams_replacement_policy_set)
    resourceStalls = _swig_property(_param_RubyCache.RubyCacheParams_resourceStalls_get, _param_RubyCache.RubyCacheParams_resourceStalls_set)
    ruby_system = _swig_property(_param_RubyCache.RubyCacheParams_ruby_system_get, _param_RubyCache.RubyCacheParams_ruby_system_set)
    size = _swig_property(_param_RubyCache.RubyCacheParams_size_get, _param_RubyCache.RubyCacheParams_size_set)
    start_index_bit = _swig_property(_param_RubyCache.RubyCacheParams_start_index_bit_get, _param_RubyCache.RubyCacheParams_start_index_bit_set)
    tagAccessLatency = _swig_property(_param_RubyCache.RubyCacheParams_tagAccessLatency_get, _param_RubyCache.RubyCacheParams_tagAccessLatency_set)
    tagArrayBanks = _swig_property(_param_RubyCache.RubyCacheParams_tagArrayBanks_get, _param_RubyCache.RubyCacheParams_tagArrayBanks_set)

    def __init__(self):
        this = _param_RubyCache.new_RubyCacheParams()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _param_RubyCache.delete_RubyCacheParams
    __del__ = lambda self: None
RubyCacheParams_swigregister = _param_RubyCache.RubyCacheParams_swigregister
RubyCacheParams_swigregister(RubyCacheParams)




<filename>build/X86_MESI_Two_Level/python/m5/internal/param_RubyCache.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_param_RubyCache')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_param_RubyCache')
    _param_RubyCache = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_param_RubyCache', [dirname(__file__)])
        except ImportError:
            import _param_RubyCache
            return _param_RubyCache
        try:
            _mod = imp.load_module('_param_RubyCache', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _param_RubyCache = swig_import_helper()
    del swig_import_helper
else:
    import _param_RubyCache
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


import m5.internal.param_ReplacementPolicy
import m5.internal.param_SimObject
import m5.internal.drain
import m5.internal.serialize
import m5.internal.param_RubySystem
import m5.internal.param_SimpleMemory
import m5.internal.param_AbstractMemory
import m5.internal.param_MemObject
import m5.internal.param_ClockedObject
import m5.internal.param_ClockDomain
class CacheMemory(m5.internal.param_SimObject.SimObject):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
CacheMemory_swigregister = _param_RubyCache.CacheMemory_swigregister
CacheMemory_swigregister(CacheMemory)

class RubyCacheParams(m5.internal.param_SimObject.SimObjectParams):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def create(self):
        return _param_RubyCache.RubyCacheParams_create(self)
    assoc = _swig_property(_param_RubyCache.RubyCacheParams_assoc_get, _param_RubyCache.RubyCacheParams_assoc_set)
    block_size = _swig_property(_param_RubyCache.RubyCacheParams_block_size_get, _param_RubyCache.RubyCacheParams_block_size_set)
    cache_level = _swig_property(_param_RubyCache.RubyCacheParams_cache_level_get, _param_RubyCache.RubyCacheParams_cache_level_set)
    dataAccessLatency = _swig_property(_param_RubyCache.RubyCacheParams_dataAccessLatency_get, _param_RubyCache.RubyCacheParams_dataAccessLatency_set)
    dataArrayBanks = _swig_property(_param_RubyCache.RubyCacheParams_dataArrayBanks_get, _param_RubyCache.RubyCacheParams_dataArrayBanks_set)
    is_icache = _swig_property(_param_RubyCache.RubyCacheParams_is_icache_get, _param_RubyCache.RubyCacheParams_is_icache_set)
    np = _swig_property(_param_RubyCache.RubyCacheParams_np_get, _param_RubyCache.RubyCacheParams_np_set)
    replacement_policy = _swig_property(_param_RubyCache.RubyCacheParams_replacement_policy_get, _param_RubyCache.RubyCacheParams_replacement_policy_set)
    resourceStalls = _swig_property(_param_RubyCache.RubyCacheParams_resourceStalls_get, _param_RubyCache.RubyCacheParams_resourceStalls_set)
    ruby_system = _swig_property(_param_RubyCache.RubyCacheParams_ruby_system_get, _param_RubyCache.RubyCacheParams_ruby_system_set)
    size = _swig_property(_param_RubyCache.RubyCacheParams_size_get, _param_RubyCache.RubyCacheParams_size_set)
    start_index_bit = _swig_property(_param_RubyCache.RubyCacheParams_start_index_bit_get, _param_RubyCache.RubyCacheParams_start_index_bit_set)
    tagAccessLatency = _swig_property(_param_RubyCache.RubyCacheParams_tagAccessLatency_get, _param_RubyCache.RubyCacheParams_tagAccessLatency_set)
    tagArrayBanks = _swig_property(_param_RubyCache.RubyCacheParams_tagArrayBanks_get, _param_RubyCache.RubyCacheParams_tagArrayBanks_set)

    def __init__(self):
        this = _param_RubyCache.new_RubyCacheParams()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _param_RubyCache.delete_RubyCacheParams
    __del__ = lambda self: None
RubyCacheParams_swigregister = _param_RubyCache.RubyCacheParams_swigregister
RubyCacheParams_swigregister(RubyCacheParams)




# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. # Python < 2.2 doesn't have 'property'.