uart.py

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

PY
17
字号
from m5 import *from Device import PioDeviceclass Uart(PioDevice):    type = 'Uart'    abstract = True    console = Param.SimConsole(Parent.any, "The console")    size = Param.Addr(0x8, "Device size")class Uart8250(Uart):    type = 'Uart8250'if build_env['ALPHA_TLASER']:    class Uart8530(Uart):        type = 'Uart8530'

⌨️ 快捷键说明

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