Get rid of the Trace ParamContext and give python direct
[gem5.git] / src / python / m5 / objects / Bus.py
1 from m5 import build_env
2 from m5.params import *
3 from m5.proxy import *
4 from MemObject import MemObject
5 from Device import BadAddr
6
7 class Bus(MemObject):
8 type = 'Bus'
9 port = VectorPort("vector port for connecting devices")
10 bus_id = Param.Int(0, "blah")
11 clock = Param.Clock("1GHz", "bus clock speed")
12 width = Param.Int(64, "bus width (bytes)")
13 responder_set = Param.Bool(False, "Did the user specify a default responder.")
14 if build_env['FULL_SYSTEM']:
15 responder = BadAddr(pio_addr=0x0, pio_latency="1ps")
16 default = Port(Self.responder.pio, "Default port for requests that aren't handled by a device.")
17 else:
18 default = Port("Default port for requests that aren't handled by a device.")