summaryrefslogtreecommitdiff
path: root/python/m5/objects/Uart.py
blob: 6eda5cdb348666bd98b091698ac5bcfc06b81ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from m5 import *
from Device import PioDevice

class 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'