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

class PioDevice(MemObject):
    type = 'PioDevice'
    abstract = True
    platform = Param.Platform(Parent.any, "Platform this device is part of")
    system = Param.System(Parent.any, "System this device is part of")

class BasicPioDevice(PioDevice):
    type = 'BasicPioDevice'
    abstract = True
    pio_addr = Param.Addr("Device Address")
    pio_latency = Param.Tick(1, "Programmed IO latency in simticks")