tsunami.py

来自「linux下基于c++的处理器仿真平台。具有处理器流水线」· Python 代码 · 共 28 行

PY
28
字号
from m5 import *from Device import FooPioDevicefrom Platform import Platformclass Tsunami(Platform):    type = 'Tsunami'    pciconfig = Param.PciConfigAll("PCI configuration")    system = Param.System(Parent.any, "system")class TsunamiCChip(FooPioDevice):    type = 'TsunamiCChip'    tsunami = Param.Tsunami(Parent.any, "Tsunami")class IsaFake(FooPioDevice):    type = 'IsaFake'    size = Param.Addr("Size of address range")class TsunamiIO(FooPioDevice):    type = 'TsunamiIO'    time = Param.UInt64(1136073600,        "System time to use (0 for actual time, default is 1/1/06)")    tsunami = Param.Tsunami(Parent.any, "Tsunami")    frequency = Param.Frequency('1024Hz', "frequency of interrupts")class TsunamiPChip(FooPioDevice):    type = 'TsunamiPChip'    tsunami = Param.Tsunami(Parent.any, "Tsunami")

⌨️ 快捷键说明

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