⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bridge.py

📁 M5,一个功能强大的多处理器系统模拟器.很多针对处理器架构,性能的研究都使用它作为模拟平台
💻 PY
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -