亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? config.py

?? linux下基于c++的處理器仿真平臺。具有處理器流水線
?? PY
?? 第 1 頁 / 共 5 頁
字號:
                subopts.append(subo)        return subopts    def printinfo(self):        super(Group, self).printinfo()        print 'config: %s' % self.config.name        print 'options: %s' % [ o.name for o in self._options ]        super(Group, self).printverbose()class Configuration(Data):    def __init__(self, name, desc, **kwargs):        super(Configuration, self).__init__(name, desc, **kwargs)        self._groups = []    def group(self, name, desc, **kwargs):        grp = Group(name, desc, **kwargs)        grp.config = self        grp.number = len(self._groups)        self._groups.append(grp)        return grp    def groups(self, flags=Flags(), sign=True):        if not flags:            return self._groups        return [ grp for grp in self._groups if sign ^ grp.flags.match(flags) ]    def checkchildren(self, kids):        for kid in kids:            if kid.config != self:                raise AttributeError, "child from the wrong configuration"    def sortgroups(self, groups):        groups = [ (grp.number, grp) for grp in groups ]        groups.sort()        return [ grp[1] for grp in groups ]        def options(self, groups = None, checkpoint = False):        if groups is None:            groups = self._groups        self.checkchildren(groups)        groups = self.sortgroups(groups)        if checkpoint:            groups = [ grp for grp in groups if grp.checkpoint ]            optgroups = [ g.options() for g in groups ]        else:            optgroups = [ g.subopts() for g in groups ]        for options in crossproduct(optgroups):            for opt in options:                cpt = opt.group.checkpoint                if not isinstance(cpt, bool) and cpt != opt:                    if checkpoint:                        break                    else:                        yield options            else:                if checkpoint:                    yield options    def checkpoints(self, groups = None):        for options in self.options(groups, True):            yield Job(options)    def jobs(self, groups = None):        for options in self.options(groups, False):            yield Job(options)    def alljobs(self, groups = None):        for options in self.options(groups, True):            yield Job(options)        for options in self.options(groups, False):            yield Job(options)    def find(self, jobname):        for job in self.alljobs():            if job.name == jobname:                return job        else:            raise AttributeError, "job '%s' not found" % jobname    def job(self, options):        self.checkchildren(options)        options = [ (opt.group.number, opt) for opt in options ]        options.sort()        options = [ opt[1] for opt in options ]        job = Job(options)        return job    def printinfo(self):        super(Configuration, self).printinfo()        print 'groups: %s' % [ g.name for g in self._grouips ]        super(Configuration, self).printverbose()def JobFile(jobfile):    from os.path import expanduser, isfile, join as joinpath    filename = expanduser(jobfile)    # Can't find filename in the current path, search sys.path    if not isfile(filename):        for path in sys.path:            testname = joinpath(path, filename)            if isfile(testname):                filename = testname                break        else:            raise AttributeError, \\                  "Could not find file '%s'" % jobfile    data = {}    execfile(filename, data)    if 'conf' not in data:        raise ImportError, 'cannot import name conf from %s' % jobfile    conf = data['conf']    import jobfile    if not isinstance(conf, Configuration):        raise AttributeError, \\              'conf in jobfile: %s (%s) is not type %s' % \\              (jobfile, type(conf), Configuration)    return confif __name__ == '__main__':    from jobfile import *    import sys    usage = 'Usage: %s [-b] [-c] [-v] <jobfile>' % sys.argv[0]    try:        import getopt        opts, args = getopt.getopt(sys.argv[1:], '-bcv')    except getopt.GetoptError:        sys.exit(usage)    if len(args) != 1:        raise AttributeError, usage    both = False    checkpoint = False    verbose = False    for opt,arg in opts:        if opt == '-b':            both = True            checkpoint = True        if opt == '-c':            checkpoint = True        if opt == '-v':            verbose = True    jobfile = args[0]    conf = JobFile(jobfile)    if both:        gen = conf.alljobs()    elif checkpoint:        gen = conf.checkpoints()    else:        gen = conf.jobs()            for job in gen:        if not verbose:            cpt = ''            if job.checkpoint:                cpt = job.checkpoint.name            print job.name, cpt        else:            job.printinfo()''')AddModule(['m5'], '__init__', 'py', 'm5/python/m5/__init__.py', '''\# Copyright (c) 2005# The Regents of The University of Michigan# All Rights Reserved## This code is part of the M5 simulator, developed by Nathan Binkert,# Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions# from Ron Dreslinski, Dave Greene, Lisa Hsu, Kevin Lim, Ali Saidi,# and Andrew Schultz.## Permission is granted to use, copy, create derivative works and# redistribute this software and such derivative works for any# purpose, so long as the copyright notice above, this grant of# permission, and the disclaimer below appear in all copies made; and# so long as the name of The University of Michigan is not used in any# advertising or publicity pertaining to the use or distribution of# this software without specific, written prior authorization.## THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE# UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND# WITHOUT WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER# EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR# PURPOSE. THE REGENTS OF THE UNIVERSITY OF MICHIGAN SHALL NOT BE# LIABLE FOR ANY DAMAGES, INCLUDING DIRECT, SPECIAL, INDIRECT,# INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM# ARISING OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN# IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH# DAMAGES.import sys, os# define this here so we can use it right away if necessarydef panic(string):    print >>sys.stderr, 'panic:', string    sys.exit(1)def m5execfile(f, global_dict):    # copy current sys.path    oldpath = sys.path[:]    # push file's directory onto front of path    sys.path.insert(0, os.path.abspath(os.path.dirname(f)))    execfile(f, global_dict)    # restore original path    sys.path = oldpath# Prepend given directory to system module search path.def AddToPath(path):    # if it's a relative path and we know what directory the current    # python script is in, make the path relative to that directory.    if not os.path.isabs(path) and sys.path[0]:        path = os.path.join(sys.path[0], path)    path = os.path.realpath(path)    # sys.path[0] should always refer to the current script's directory,    # so place the new dir right after that.    sys.path.insert(1, path)# find the m5 compile options: must be specified as a dict in# __main__.m5_build_env.import __main__if not hasattr(__main__, 'm5_build_env'):    panic("__main__ must define m5_build_env")# make a SmartDict out of the build options for our local useimport smartdictbuild_env = smartdict.SmartDict()build_env.update(__main__.m5_build_env)# make a SmartDict out of the OS environment tooenv = smartdict.SmartDict()env.update(os.environ)# import the main m5 config codefrom config import *# import the built-in object definitionsfrom objects import *''')AddModule(['m5'], 'config', 'py', 'm5/python/m5/config.py', '''\# Copyright (c) 2004, 2005# The Regents of The University of Michigan# All Rights Reserved## This code is part of the M5 simulator, developed by Nathan Binkert,# Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions# from Ron Dreslinski, Dave Greene, Lisa Hsu, Kevin Lim, Ali Saidi,# and Andrew Schultz.## Permission is granted to use, copy, create derivative works and# redistribute this software and such derivative works for any# purpose, so long as the copyright notice above, this grant of# permission, and the disclaimer below appear in all copies made; and# so long as the name of The University of Michigan is not used in any# advertising or publicity pertaining to the use or distribution of# this software without specific, written prior authorization.## THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE# UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND# WITHOUT WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER# EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR# PURPOSE. THE REGENTS OF THE UNIVERSITY OF MICHIGAN SHALL NOT BE# LIABLE FOR ANY DAMAGES, INCLUDING DIRECT, SPECIAL, INDIRECT,# INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM# ARISING OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN# IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH# DAMAGES.from __future__ import generatorsimport os, re, sys, types, inspectimport m5panic = m5.panicfrom convert import *from multidict import multidictnoDot = Falsetry:    import pydotexcept:    noDot = Trueclass Singleton(type):    def __call__(cls, *args, **kwargs):        if hasattr(cls, '_instance'):            return cls._instance        cls._instance = super(Singleton, cls).__call__(*args, **kwargs)        return cls._instance####################################################################### M5 Python Configuration Utility## The basic idea is to write simple Python programs that build Python# objects corresponding to M5 SimObjects for the desired simulation# configuration.  For now, the Python emits a .ini file that can be# parsed by M5.  In the future, some tighter integration between M5# and the Python interpreter may allow bypassing the .ini file.## Each SimObject class in M5 is represented by a Python class with the# same name.  The Python inheritance tree mirrors the M5 C++ tree# (e.g., SimpleCPU derives from BaseCPU in both cases, and all# SimObjects inherit from a single SimObject base class).  To specify# an instance of an M5 SimObject in a configuration, the user simply# instantiates the corresponding Python object.  The parameters for# that SimObject are given by assigning to attributes of the Python# object, either using keyword assignment in the constructor or in# separate assignment statements.  For example:## cache = BaseCache(size='64KB')# cache.hit_latency = 3# cache.assoc = 8## The magic lies in the mapping of the Python attributes for SimObject# classes to the actual SimObject parameter specifications.  This# allows parameter validity checking in the Python code.  Continuing# the example above, the statements "cache.blurfl=3" or# "cache.assoc='hello'" would both result in runtime errors in Python,# since the BaseCache object has no 'blurfl' parameter and the 'assoc'# parameter requires an integer, respectively.  This magic is done# primarily by overriding the special __setattr__ method that controls# assignment to object attributes.## Once a set of Python objects have been instantiated in a hierarchy,# calling 'instantiate(obj)' (where obj is the root of the hierarchy)# will generate a .ini file.  See simple-4cpu.py for an example# (corresponding to m5-test/simple-4cpu.ini).############################################################################################################################################# ConfigNode/SimObject classes## The Python class hierarchy rooted by ConfigNode (which is the base# class of SimObject, which in turn is the base class of all other M5# SimObject classes) has special attribute behavior.  In general, an# object in this hierarchy has three categories of attribute-like# things:## 1. Regular Python methods and variables.  These must start with an# underscore to be treated normally.## 2. SimObject parameters.  These values are stored as normal Python# attributes, but all assignments to these attributes are checked# against the pre-defined set of parameters stored in the class's# _params dictionary.  Assignments to attributes that do not# correspond to predefined parameters, or that are not of the correct# type, incur runtime errors.## 3. Hierarchy children.  The child nodes of a ConfigNode are stored# in the node's _children dictionary, but can be accessed using the# Python attribute dot-notation (just as they are printed out by the# simulator).  Children cannot be created using attribute assigment;# they must be added by specifying the parent node in the child's# constructor or using the '+=' operator.# The SimObject parameters are the most complex, for a few reasons.# First, both parameter descriptions and parameter values are# inherited.  Thus parameter description lookup must go up the# inheritance chain like normal attribute lookup, but this behavior# must be explicitly coded since the lookup occurs in each class's# _params attribute.  Second, because parameter values can be set# on SimObject classes (to implement default values), the parameter# checking behavior must be enforced on class attribute assignments as# well as instance attribute assignments.  Finally, because we allow# class specialization via inheritance (e.g., see the L1Cache class in# the simple-4cpu.py example), we must do parameter checking even on# class instantiation.  To provide all these features, we use a# metaclass to define most of the SimObject parameter behavior for# this class hierarchy.######################################################################def isSimObject(value):    return isinstance(value, SimObject) 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩中文字幕区一区有砖一区 | 国产高清在线精品| 最近日韩中文字幕| 欧美成人video| 在线一区二区三区四区| 国产在线视视频有精品| 丝袜亚洲精品中文字幕一区| 国产欧美一二三区| 日韩欧美资源站| 在线视频一区二区三区| 国产91高潮流白浆在线麻豆| 日韩激情在线观看| 亚洲柠檬福利资源导航| 欧美高清在线一区二区| 日韩欧美一区二区在线视频| 在线观看三级视频欧美| eeuss鲁片一区二区三区在线观看| 开心九九激情九九欧美日韩精美视频电影 | 粉嫩高潮美女一区二区三区 | 欧美成人欧美edvon| 欧美婷婷六月丁香综合色| 成人激情黄色小说| 国产精品亚洲午夜一区二区三区| 日本视频一区二区| 亚洲第一激情av| 亚洲精品高清视频在线观看| 中文字幕在线免费不卡| 国产性做久久久久久| 久久先锋资源网| 久久先锋影音av鲁色资源网| 欧美成人vps| 日韩久久精品一区| 欧美一区二区在线视频| 91精品婷婷国产综合久久性色 | 欧美v亚洲v综合ⅴ国产v| 欧美乱熟臀69xxxxxx| 欧美伊人久久久久久午夜久久久久| 91污在线观看| 99久久精品国产一区| 91视频你懂的| 91国偷自产一区二区三区观看 | 东方欧美亚洲色图在线| 国产精品自拍av| 粉嫩av一区二区三区粉嫩| 成人精品国产一区二区4080| 成人ar影院免费观看视频| www.成人网.com| 在线观看国产一区二区| 欧美日韩一级片网站| 欧美日韩国产在线播放网站| 欧美嫩在线观看| 日韩欧美一级特黄在线播放| 精品久久久久久综合日本欧美 | 亚洲日本va午夜在线电影| 亚洲少妇中出一区| 一区二区三区四区国产精品| 亚洲午夜精品网| 麻豆成人免费电影| 国产电影精品久久禁18| 成人黄色777网| 91国偷自产一区二区三区观看| 欧美日韩高清一区| 欧美一级日韩一级| 久久久美女毛片| 亚洲色欲色欲www| 五月婷婷久久丁香| 国内精品第一页| 99精品黄色片免费大全| 欧美午夜宅男影院| 精品日本一线二线三线不卡| 日本一区二区三区免费乱视频| 亚洲最大的成人av| 国产在线麻豆精品观看| 91蜜桃在线观看| 日韩免费成人网| 中文字幕在线一区二区三区| 亚洲一区精品在线| 国产在线国偷精品产拍免费yy| www.久久久久久久久| 欧美一级在线观看| 国产精品麻豆一区二区| 婷婷中文字幕一区三区| 国产酒店精品激情| 欧美日韩亚洲高清一区二区| 精品乱人伦小说| 一区二区三区免费在线观看| 国产一区二区免费看| 欧洲国产伦久久久久久久| 久久影院午夜论| 午夜影视日本亚洲欧洲精品| 国产精品69久久久久水密桃| 欧美三日本三级三级在线播放| 国产亚洲综合在线| 日本欧美大码aⅴ在线播放| 97精品国产露脸对白| 2021中文字幕一区亚洲| 亚洲va韩国va欧美va精品| 成人免费va视频| 26uuu亚洲综合色| 午夜日韩在线观看| 白白色 亚洲乱淫| 精品国产免费一区二区三区四区 | 日本一区二区免费在线观看视频| 亚洲国产精品一区二区www| 国产成人精品aa毛片| 日韩三级视频在线观看| 一区二区欧美视频| 国产在线视频一区二区| 6080日韩午夜伦伦午夜伦| 亚洲欧美一区二区不卡| 国产成人av一区二区三区在线| 欧美一区午夜精品| 亚洲夂夂婷婷色拍ww47| 99精品国产99久久久久久白柏| 久久老女人爱爱| 精品中文字幕一区二区小辣椒 | 欧美日韩国产不卡| 亚洲欧美电影院| 99热精品国产| 国产精品免费观看视频| 国产盗摄一区二区| 久久久久97国产精华液好用吗| 久热成人在线视频| 欧美xxxxx裸体时装秀| 丝袜美腿高跟呻吟高潮一区| 在线观看成人小视频| 一区二区三区日本| 一本色道久久综合亚洲精品按摩| 国产精品高潮呻吟| 成人av网站免费观看| 国产精品乱人伦一区二区| 成人丝袜高跟foot| 欧美国产乱子伦 | 久久国产生活片100| 日韩一区二区三区观看| 捆绑紧缚一区二区三区视频| 欧美不卡一区二区| 国产一区二区美女| 欧美激情在线一区二区| 成人av在线网站| 亚洲欧美激情插| 欧美中文字幕一区| 午夜成人免费电影| 日韩欧美中文字幕精品| 寂寞少妇一区二区三区| 2022国产精品视频| 成人av电影观看| 曰韩精品一区二区| 91麻豆精品国产自产在线| 蜜桃传媒麻豆第一区在线观看| 日韩一区二区三区av| 韩国女主播成人在线| 国产精品女人毛片| 91精彩视频在线| 美女任你摸久久| 久久久精品天堂| 99国产精品久久久久久久久久| 亚洲日本中文字幕区| 欧美在线观看18| 久久66热偷产精品| 国产精品久久久久久久久搜平片 | 欧美一级片免费看| 韩国欧美国产一区| 自拍视频在线观看一区二区| 91福利国产成人精品照片| 日本不卡视频在线观看| 久久久亚洲高清| 91女人视频在线观看| 亚洲成av人**亚洲成av**| 日韩精品一区二区在线| 成人激情免费视频| 日韩在线播放一区二区| 久久久久久免费网| 在线免费观看日本欧美| 黄色小说综合网站| 亚洲免费色视频| 欧美xxxxxxxxx| 91麻豆高清视频| 激情五月播播久久久精品| 中文字幕一区视频| 日韩午夜电影av| 91在线观看成人| 国内精品自线一区二区三区视频| 亚洲美女视频一区| 久久先锋影音av| 欧美日韩成人高清| 丰满放荡岳乱妇91ww| 全国精品久久少妇| 亚洲人吸女人奶水| 精品久久久久av影院| 欧美在线视频全部完| 国产91富婆露脸刺激对白| 日韩国产欧美三级| 亚洲三级久久久| 国产人成亚洲第一网站在线播放| 欧美日韩免费视频| 99精品视频一区二区三区| 国产一区二区三区最好精华液| 亚洲成在人线免费| 中文字幕一区二区三区不卡|