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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? config.py

?? linux下基于c++的處理器仿真平臺(tái)。具有處理器流水線
?? PY
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
                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) 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色欧美片视频在线观看| 欧美日韩免费一区二区三区视频| 亚洲乱码中文字幕| 日韩欧美在线不卡| 欧美性猛片xxxx免费看久爱| 国产精品一区二区三区网站| 日本视频免费一区| 亚洲欧美一区二区不卡| 久久先锋影音av| 精品视频1区2区| 9色porny自拍视频一区二区| 激情欧美一区二区三区在线观看| 亚洲午夜久久久久中文字幕久| 国产精品的网站| 国产婷婷色一区二区三区四区| 91精品国产综合久久精品| 91黄视频在线观看| 97久久精品人人爽人人爽蜜臀| 国内不卡的二区三区中文字幕 | 久久国产精品无码网站| 亚洲另类在线一区| 国产精品久久久久久久久免费桃花| 欧美成人a在线| 91精品午夜视频| 91精选在线观看| 欧美精品v日韩精品v韩国精品v| 色综合色综合色综合| 成人午夜大片免费观看| 国产真实乱对白精彩久久| 美女视频第一区二区三区免费观看网站| 亚洲高清在线精品| 亚洲一区二区三区激情| 亚洲男同1069视频| 亚洲色图在线播放| 亚洲女性喷水在线观看一区| 中文字幕在线观看不卡视频| 中文天堂在线一区| 国产精品久久久久久久久久久免费看 | 成人av影院在线| 东方欧美亚洲色图在线| 东方aⅴ免费观看久久av| 国产99久久久久| 成人性生交大合| 成人av高清在线| 色偷偷久久人人79超碰人人澡| 色综合久久天天| 欧美性猛片aaaaaaa做受| 精品视频1区2区| 欧美一级在线观看| 精品蜜桃在线看| 国产欧美一区二区三区鸳鸯浴| 欧美激情一区二区三区不卡| 中文字幕不卡一区| 亚洲黄色小视频| 日日噜噜夜夜狠狠视频欧美人 | 91麻豆免费在线观看| 色综合咪咪久久| 欧美精品vⅰdeose4hd| 欧美大片一区二区| 欧美极品aⅴ影院| 亚洲六月丁香色婷婷综合久久 | 日韩国产精品久久久| 蜜桃精品视频在线观看| 国产福利一区二区| 色老汉一区二区三区| 91麻豆精品久久久久蜜臀| 日韩欧美电影一二三| 国产精品视频在线看| 一区二区三区加勒比av| 蜜臀99久久精品久久久久久软件| 国产精品资源在线观看| 日本精品视频一区二区| 欧美一级在线免费| 国产精品国产三级国产aⅴ原创 | 成人高清视频在线| 在线这里只有精品| 精品伦理精品一区| 亚洲精品欧美激情| 国产一区二区女| 色88888久久久久久影院野外| 欧美成人一区二区三区片免费| 国产精品欧美久久久久一区二区| 亚洲成人福利片| 国产 欧美在线| 欧美久久久久中文字幕| 国产亚洲精品超碰| 视频在线观看一区| 91在线无精精品入口| 日韩午夜精品视频| 一区二区三国产精华液| 国内精品久久久久影院薰衣草| 91福利在线看| 日本一区二区三区四区| 亚洲3atv精品一区二区三区| 成人黄色在线网站| 欧美α欧美αv大片| 亚洲午夜视频在线| av一区二区不卡| 久久久久88色偷偷免费| 视频一区在线视频| 91福利在线观看| 国产精品另类一区| 狠狠色狠狠色综合| 91精品国产手机| 亚洲国产美女搞黄色| www.亚洲色图| 久久免费视频色| 麻豆精品视频在线观看免费 | 欧美一区二区福利在线| 亚洲国产综合91精品麻豆| av在线不卡免费看| 久久久国产一区二区三区四区小说| 日一区二区三区| 欧美日韩精品高清| 亚洲欧美日韩小说| 99麻豆久久久国产精品免费 | 国产精品私人自拍| 国产福利91精品一区二区三区| 欧美成人伊人久久综合网| 午夜精品久久久久久久| 欧亚一区二区三区| 一区二区三区在线视频免费观看| 成人激情小说乱人伦| 久久精品一区二区三区不卡 | 色婷婷国产精品综合在线观看| 国产精品国产三级国产aⅴ入口 | 色呦呦网站一区| 国产精品成人一区二区三区夜夜夜| 国内精品国产三级国产a久久| 欧美成人vr18sexvr| 精品一区在线看| 欧美大片拔萝卜| 国产伦精品一区二区三区在线观看| 精品少妇一区二区三区视频免付费 | 日韩欧美www| 免费成人在线视频观看| 91精品国产综合久久久蜜臀粉嫩| 亚洲成人av中文| 67194成人在线观看| 日韩不卡一区二区三区| 91精品黄色片免费大全| 免费成人在线影院| 久久婷婷国产综合国色天香| 国产成人8x视频一区二区| 中文字幕 久热精品 视频在线| caoporm超碰国产精品| 一色桃子久久精品亚洲| 色偷偷久久人人79超碰人人澡 | 亚洲一区二区三区四区在线观看| 欧美午夜影院一区| 日本一区中文字幕| 欧美精品一区二区精品网| 国产一区二区在线电影| 国产精品毛片高清在线完整版| 色综合视频在线观看| 亚洲bdsm女犯bdsm网站| 精品理论电影在线观看| 国产精品77777竹菊影视小说| 国产精品丝袜一区| 欧美在线制服丝袜| 麻豆精品一区二区av白丝在线| 久久精品一二三| 色视频欧美一区二区三区| 日韩vs国产vs欧美| 国产网红主播福利一区二区| 欧美色综合网站| 国产精品成人网| 日韩美女一区二区三区四区| 91久久奴性调教| 日韩不卡手机在线v区| 国产日韩欧美一区二区三区乱码 | 成人午夜视频网站| 一区二区三区成人在线视频| 日韩精品一区二区在线观看| 成人免费观看av| 爽好多水快深点欧美视频| 国产欧美1区2区3区| 欧美三级欧美一级| 成人综合在线网站| 日韩精品1区2区3区| 国产精品无人区| 日韩精品中文字幕在线一区| 成人黄色777网| 久久国产尿小便嘘嘘| 玉足女爽爽91| 国产欧美一区二区在线| 欧美一区二区三区色| 91视频免费看| 国产美女精品一区二区三区| 亚洲在线成人精品| 中文字幕av资源一区| 欧美一区二区三区电影| 91亚洲精品一区二区乱码| 精彩视频一区二区三区| 亚洲在线观看免费| 国产精品美女久久久久高潮| 欧美videossexotv100| 欧美性大战久久久| 成人高清视频在线| 国产精品一级在线|