Ruby: remove reference to g_system_ptr from class Message
[gem5.git] / src / mem / Bus.py
index 05033d38247ac327a53355e1dd9113c39ce00119..4637b0ebcd5d0ce3d1d0329b0a1289d63f2a75ef 100644 (file)
@@ -45,13 +45,13 @@ from m5.params import *
 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
@@ -67,6 +67,8 @@ class BaseBus(MemObject):
 
 class NoncoherentBus(BaseBus):
     type = 'NoncoherentBus'
+    cxx_header = "mem/noncoherent_bus.hh"
 
 class CoherentBus(BaseBus):
     type = 'CoherentBus'
+    cxx_header = "mem/coherent_bus.hh"