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):
self.sync_mode = 0
self.start_tick = 0
self.sync_period = 500
"""Period in nanoseconds of sending synchronization messages from this
device to connected components."""
self.pci_latency = 500
"""Latency in nanoseconds for sending messages to components connected
via PCI."""
def full_name(self):
return 'dev.' + self.name
......@@ -273,8 +277,14 @@ class HostSim(Simulator):
self.sync_mode = 0
self.sync_period = 500
"""Period in nanoseconds of sending synchronization messages from this
device to connected components."""
self.pci_latency = 500
"""Latency in nanoseconds for sending messages to components connected
via PCIe."""
self.mem_latency = 500
"""Latency in nanoseconds for sending messages to components connected
via Ethernet."""
self.pcidevs: tp.List[PCIDevSim] = []
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