class BaseBus(MemObject):
type = 'BaseBus'
abstract = True
+ cxx_header = "mem/bus.hh"
slave = VectorSlavePort("vector port for connecting masters")
master = VectorMasterPort("vector port for connecting slaves")
- clock = Param.Clock("1GHz", "bus clock speed")
- header_cycles = Param.Int(1, "cycles of overhead per transaction")
- width = Param.Int(64, "bus width (bytes)")
- block_size = Param.Int(64, "The default block size if not set by " \
- "any connected module")
+ header_cycles = Param.Cycles(1, "cycles of overhead per transaction")
+ width = Param.Unsigned(8, "bus width (bytes)")
+ block_size = Param.Unsigned(64, "The default block size if not set by " \
+ "any connected module")
# The default port can be left unconnected, or be used to connect
# a default slave port
class NoncoherentBus(BaseBus):
type = 'NoncoherentBus'
+ cxx_header = "mem/noncoherent_bus.hh"
class CoherentBus(BaseBus):
type = 'CoherentBus'
+ cxx_header = "mem/coherent_bus.hh"