"...composable_kernel.git" did not exist on "c0b9d8c2fa04098f4cdbf89defd8ea99d9f8f043"
Commit 756f34d9 authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

simulators.py: add doc strings for latency and sync period in common simulators

parent 2aa8a262
...@@ -89,7 +89,11 @@ class PCIDevSim(Simulator): ...@@ -89,7 +89,11 @@ class PCIDevSim(Simulator):
self.sync_mode = 0 self.sync_mode = 0
self.start_tick = 0 self.start_tick = 0
self.sync_period = 500 self.sync_period = 500
"""Period in nanoseconds of sending synchronization messages from this
device to connected components."""
self.pci_latency = 500 self.pci_latency = 500
"""Latency in nanoseconds for sending messages to components connected
via PCI."""
def full_name(self): def full_name(self):
return 'dev.' + self.name return 'dev.' + self.name
...@@ -273,8 +277,14 @@ class HostSim(Simulator): ...@@ -273,8 +277,14 @@ class HostSim(Simulator):
self.sync_mode = 0 self.sync_mode = 0
self.sync_period = 500 self.sync_period = 500
"""Period in nanoseconds of sending synchronization messages from this
device to connected components."""
self.pci_latency = 500 self.pci_latency = 500
"""Latency in nanoseconds for sending messages to components connected
via PCIe."""
self.mem_latency = 500 self.mem_latency = 500
"""Latency in nanoseconds for sending messages to components connected
via Ethernet."""
self.pcidevs: tp.List[PCIDevSim] = [] self.pcidevs: tp.List[PCIDevSim] = []
self.net_directs: tp.List[NetSim] = [] self.net_directs: tp.List[NetSim] = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment