summaryrefslogtreecommitdiff
path: root/src/python/m5/objects/Bus.py
blob: 8226fe8d2619ab8914b2f51ff9e86c37119d26df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from m5 import build_env
from m5.params import *
from m5.proxy import *
from MemObject import MemObject
from Device import BadAddr

class Bus(MemObject):
    type = 'Bus'
    port = VectorPort("vector port for connecting devices")
    bus_id = Param.Int(0, "blah")
    clock = Param.Clock("1GHz", "bus clock speed")
    width = Param.Int(64, "bus width (bytes)")
    responder_set = Param.Bool(False, "Did the user specify a default responder.")
    if build_env['FULL_SYSTEM']:
        responder = BadAddr(pio_addr=0x0, pio_latency="1ps")
        default = Port(Self.responder.pio, "Default port for requests that aren't handled by a device.")
    else:
        default = Port("Default port for requests that aren't handled by a device.")