Change the device latency here to a latency rather than a Tick
authorAli Saidi <saidi@eecs.umich.edu>
Wed, 19 Jul 2006 21:24:20 +0000 (17:24 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Wed, 19 Jul 2006 21:24:20 +0000 (17:24 -0400)
src/python/m5/objects/Device.py:
src/python/m5/objects/Pci.py:
    Change the default here to a latency rather than a Tick

--HG--
extra : convert_revision : b9366dd89646cea27a836baf249ac2da38c1809f

src/python/m5/objects/Device.py
src/python/m5/objects/Pci.py

index 222f750da6d93e75cce298dc5ce00ffb09f54666..f72c8e73f2f290622f749ce81e2c824401ec021c 100644 (file)
@@ -12,7 +12,7 @@ class BasicPioDevice(PioDevice):
     type = 'BasicPioDevice'
     abstract = True
     pio_addr = Param.Addr("Device Address")
-    pio_latency = Param.Tick(1, "Programmed IO latency in simticks")
+    pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
 
 class DmaDevice(PioDevice):
     type = 'DmaDevice'
index 29014bb37053a2032790e8f885229636b5e29699..cc0d1cf4a8351f0a0c6a98c167d36d71483f6054 100644 (file)
@@ -52,7 +52,7 @@ class PciDevice(DmaDevice):
     pci_bus = Param.Int("PCI bus")
     pci_dev = Param.Int("PCI device number")
     pci_func = Param.Int("PCI function code")
-    pio_latency = Param.Tick(1, "Programmed IO latency in simticks")
+    pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
     configdata = Param.PciConfigData(Parent.any, "PCI Config data")
 
 class PciFake(PciDevice):