From eeff53841a6cb6c3819b69543fae861fa84cc541 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 24 Mar 2005 12:24:17 -0500 Subject: Add Frequency and Latency as new parameter types and use them where we can python/m5/config.py: Add two new parameter types: Frequency and Latency. These will soon be an integral part of the tick is picosecond thing. If the value can be converted directly to an integer without any special tricks, we assume that the number is the exact value desired. Otherwise, we convert the number assuming that it is in Hz or s. python/m5/objects/Bus.mpy: Use the new Latency and Frequency types where we can --HG-- extra : convert_revision : b3cff6020db83fb819507c348451c98697d1cf27 --- python/m5/objects/Bus.mpy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/m5/objects') diff --git a/python/m5/objects/Bus.mpy b/python/m5/objects/Bus.mpy index 025d69785..330a2c82b 100644 --- a/python/m5/objects/Bus.mpy +++ b/python/m5/objects/Bus.mpy @@ -2,5 +2,5 @@ from BaseHier import BaseHier simobj Bus(BaseHier): type = 'Bus' - clock_ratio = Param.Int("ratio of CPU to bus frequency") + clock_ratio = Param.Frequency("ratio of CPU to bus frequency") width = Param.Int("bus width in bytes") -- cgit v1.2.3