bridge.py

来自「M5,一个功能强大的多处理器系统模拟器.很多针对处理器架构,性能的研究都使用它作」· Python 代码 · 共 19 行

PY
19
字号
from m5.params import *from MemObject import MemObjectclass Bridge(MemObject):    type = 'Bridge'    side_a = Port('Side A port')    side_b = Port('Side B port')    req_size_a = Param.Int(16, "The number of requests to buffer")    req_size_b = Param.Int(16, "The number of requests to buffer")    resp_size_a = Param.Int(16, "The number of requests to buffer")    resp_size_b = Param.Int(16, "The number of requests to buffer")    delay = Param.Latency('0ns', "The latency of this bridge")    nack_delay = Param.Latency('0ns', "The latency of this bridge")    write_ack = Param.Bool(False, "Should this bridge ack writes")    filter_ranges_a = VectorParam.AddrRange([],            "What addresses shouldn't be passed through the side of the bridge")    filter_ranges_b = VectorParam.AddrRange([],            "What addresses shouldn't be passed through the side of the bridge")

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?