dev: Make default clock more reasonable for system and devices

This patch changes the default system clock from 1THz to 1GHz. This
clock is used by all modules that do not override the default (parent
clock), and primarily affects the IO subsystem. Every DMA device uses
its clock to schedule the next transfer, and the change will thus
cause this inter-transfer delay to be longer.

The default clock of the bus is removed, as the clock inherited from
the system provides exactly the same value.

A follow-on patch will bump the stats.
This commit is contained in:
Andreas Hansson 2012-10-25 13:14:44 -04:00
parent 8fe556338d
commit 6f6adbf0f6
2 changed files with 4 additions and 7 deletions

View file

@ -47,8 +47,6 @@ class BaseBus(MemObject):
abstract = True abstract = True
slave = VectorSlavePort("vector port for connecting masters") slave = VectorSlavePort("vector port for connecting masters")
master = VectorMasterPort("vector port for connecting slaves") master = VectorMasterPort("vector port for connecting slaves")
# Override the default clock
clock = '1GHz'
header_cycles = Param.Cycles(1, "cycles of overhead per transaction") header_cycles = Param.Cycles(1, "cycles of overhead per transaction")
width = Param.Unsigned(8, "bus width (bytes)") width = Param.Unsigned(8, "bus width (bytes)")
block_size = Param.Unsigned(64, "The default block size if not set by " \ block_size = Param.Unsigned(64, "The default block size if not set by " \

View file

@ -42,11 +42,10 @@ class System(MemObject):
system_port = MasterPort("System port") system_port = MasterPort("System port")
# Override the clock from the ClockedObject which looks at the # Override the clock from the ClockedObject which looks at the
# parent clock by default # parent clock by default. The 1 GHz default system clock serves
clock = '1t' # as a start for the modules that rely on the parent to provide
# @todo Either make this value 0 and treat it as an error if it is # the clock.
# not overridden, or choose a more sensible value in the range of clock = '1GHz'
# 1GHz
@classmethod @classmethod
def export_method_cxx_predecls(cls, code): def export_method_cxx_predecls(cls, code):